Fix more AppListController checks
When using Kiosk Next Shell, AppListController might not exist.
Also adds tests for these cases.
Bug: 954317
Change-Id: I5da308b5be540f56d11136c0456b455654f6da98
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1574952
Auto-Submit: Michael Giuffrida <[email protected]>
Commit-Queue: Xiyuan Xia <[email protected]>
Reviewed-by: Daniel Cheng <[email protected]>
Reviewed-by: Xiyuan Xia <[email protected]>
Cr-Commit-Position: refs/heads/master@{#652536}
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 96103413..741d5d5 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -591,7 +591,7 @@
(),
),
(
- r'RunMessageLoop',
+ r'/\bRunMessageLoop\b',
(
'RunMessageLoop is deprecated, use RunLoop instead.',
),