Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Unified Diff: ui/app_list/app_list_switches.cc

Issue 2342773002: Removed experimental app list flags. Experimental is now the only way. (Closed)
Patch Set: Respond to nit. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/app_list/app_list_switches.h ('k') | ui/app_list/views/app_list_view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 531ebc6922cc47781f6350511e85856ed02f3adb..f576cfa6dd311cb2034aa7243193692109d12903 100644
--- a/ui/app_list/app_list_switches.cc
+++ b/ui/app_list/app_list_switches.cc
@@ -22,14 +22,6 @@ const char kDisableAppListDismissOnBlur[] = "disable-app-list-dismiss-on-blur";
// If set, the app list will be enabled as if enabled from CWS.
const char kEnableAppList[] = "enable-app-list";
-// If set, the app list will be centered and wide instead of tall.
-const char kEnableCenteredAppList[] = "enable-centered-app-list";
-
-// Enable/disable the experimental app list. If enabled, implies
-// --enable-centered-app-list.
-const char kEnableExperimentalAppList[] = "enable-experimental-app-list";
-const char kDisableExperimentalAppList[] = "disable-experimental-app-list";
-
// Enable/disable syncing of the app list independent of extensions.
const char kEnableSyncAppList[] = "enable-sync-app-list";
const char kDisableSyncAppList[] = "disable-sync-app-list";
@@ -69,25 +61,13 @@ bool IsVoiceSearchEnabled() {
}
bool IsExperimentalAppListEnabled() {
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- kEnableExperimentalAppList))
- return true;
-
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- kDisableExperimentalAppList))
- return false;
-
-#if defined(OS_CHROMEOS)
+ // TODO(mgiuca): Remove this function. (https://crbug.com/531059)
return true;
-#else
- return false;
-#endif
}
bool IsCenteredAppListEnabled() {
- return base::CommandLine::ForCurrentProcess()->HasSwitch(
- kEnableCenteredAppList) ||
- IsExperimentalAppListEnabled();
+ // TODO(mgiuca): Remove this function. (https://crbug.com/531059)
+ return true;
}
bool ShouldNotDismissOnBlur() {
« no previous file with comments | « ui/app_list/app_list_switches.h ('k') | ui/app_list/views/app_list_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698