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

Unified Diff: ui/app_list/app_list_switches.cc

Issue 263883002: Renamed app list position flag to --enable-centered-app-list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
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 406519e700a76d1b7e62bbee72587db6f79838e1..d04b3dfdfc3977c55ce88ee893e9b05270e089c1 100644
--- a/ui/app_list/app_list_switches.cc
+++ b/ui/app_list/app_list_switches.cc
@@ -9,6 +9,9 @@
namespace app_list {
namespace switches {
+// If set, the app list will be centered and wide instead of tall.
+const char kCenterAppList[] = "center-app-list";
+
// Disables syncing of the app list independent of extensions.
const char kDisableSyncAppList[] = "disable-sync-app-list";
@@ -18,13 +21,9 @@ const char kDisableVoiceSearch[] = "disable-app-list-voice-search";
// If set, the app info context menu item is available in the app list UI.
const char kEnableAppInfo[] = "enable-app-list-app-info";
-// If set, the experimental app list will be used.
+// If set, the experimental app list will be used. Implies --center-app-list.
const char kEnableExperimentalAppList[] = "enable-experimental-app-list";
-// If set, the experimental app list position will be used.
-const char kEnableExperimentalAppListPosition[] =
- "enable-experimental-app-list-position";
-
// Enables syncing of the app list independent of extensions.
const char kEnableSyncAppList[] = "enable-sync-app-list";
@@ -63,9 +62,8 @@ bool IsExperimentalAppListEnabled() {
kEnableExperimentalAppList);
}
-bool IsExperimentalAppListPositionEnabled() {
- return CommandLine::ForCurrentProcess()->HasSwitch(
- kEnableExperimentalAppListPosition) ||
+bool IsAppListCentered() {
+ return CommandLine::ForCurrentProcess()->HasSwitch(kCenterAppList) ||
IsExperimentalAppListEnabled();
}

Powered by Google App Engine
This is Rietveld 408576698