Index: ui/app_list/app_list_switches.cc |
diff --git a/ui/app_list/app_list_switches.cc b/ui/app_list/app_list_switches.cc |
index ec2ea1cf8a3019c8917e46fd62f577042417367e..ea10c7ce1df6f4051dde384ff6f735679e834bc8 100644 |
--- a/ui/app_list/app_list_switches.cc |
+++ b/ui/app_list/app_list_switches.cc |
@@ -16,6 +16,11 @@ const char kCustomLauncherPage[] = "custom-launcher-page"; |
// If set, the app info context menu item is not available in the app list UI. |
const char kDisableAppInfo[] = "disable-app-list-app-info"; |
+// If set, the app list will not be dismissed when it loses focus. This is |
+// useful when testing the app list or a custom launcher page. It can still be |
+// dismissed via the other methods (like the Esc key). |
+const char kDisableAppListDismissOnBlur[] = "disable-app-list-dismiss-on-blur"; |
+ |
// If set, Drive apps will not be shown side-by-side with Chrome apps. |
const char kDisableDriveAppsInAppList[] = "disable-drive-apps-in-app-list"; |
@@ -76,6 +81,11 @@ bool IsCenteredAppListEnabled() { |
IsExperimentalAppListEnabled(); |
} |
+bool ShouldNotDismissOnBlur() { |
+ return CommandLine::ForCurrentProcess()->HasSwitch( |
+ kDisableAppListDismissOnBlur); |
+} |
+ |
bool IsDriveAppsInAppListEnabled() { |
#if defined(OS_CHROMEOS) |
return !CommandLine::ForCurrentProcess()->HasSwitch( |