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

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: Renamed IsAppListCentered to IsCenteredAppListEnabled. 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
« no previous file with comments | « ui/app_list/app_list_switches.h ('k') | ui/app_list/views/apps_container_view.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 406519e700a76d1b7e62bbee72587db6f79838e1..8f3da334f2a1e822cd72089c4dfe97c02118941f 100644
--- a/ui/app_list/app_list_switches.cc
+++ b/ui/app_list/app_list_switches.cc
@@ -18,12 +18,12 @@ 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.
-const char kEnableExperimentalAppList[] = "enable-experimental-app-list";
+// If set, the app list will be centered and wide instead of tall.
+const char kEnableCenteredAppList[] = "enable-centered-app-list";
-// If set, the experimental app list position will be used.
-const char kEnableExperimentalAppListPosition[] =
- "enable-experimental-app-list-position";
+// If set, the experimental app list will be used. Implies
+// --enable-centered-app-list.
+const char kEnableExperimentalAppList[] = "enable-experimental-app-list";
// Enables syncing of the app list independent of extensions.
const char kEnableSyncAppList[] = "enable-sync-app-list";
@@ -63,9 +63,8 @@ bool IsExperimentalAppListEnabled() {
kEnableExperimentalAppList);
}
-bool IsExperimentalAppListPositionEnabled() {
- return CommandLine::ForCurrentProcess()->HasSwitch(
- kEnableExperimentalAppListPosition) ||
+bool IsCenteredAppListEnabled() {
+ return CommandLine::ForCurrentProcess()->HasSwitch(kEnableCenteredAppList) ||
IsExperimentalAppListEnabled();
}
« no previous file with comments | « ui/app_list/app_list_switches.h ('k') | ui/app_list/views/apps_container_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698