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

Unified Diff: ash/ash_switches.cc

Issue 22793011: ash:Shelf - Enable Alternate Shelf and Side Shelf by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | « ash/ash_switches.h ('k') | ash/dip_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/ash_switches.cc
diff --git a/ash/ash_switches.cc b/ash/ash_switches.cc
index 66f4927d31c21185e9a525af4b86d58b8a925927..3611e1f3b9dc1a3e0851aba21dd0dc41494a5f31 100644
--- a/ash/ash_switches.cc
+++ b/ash/ash_switches.cc
@@ -44,6 +44,10 @@ const char kAshDefaultGuestWallpaperSmall[] =
const char kAshDefaultWallpaperLarge[] = "ash-default-wallpaper-large";
const char kAshDefaultWallpaperSmall[] = "ash-default-wallpaper-small";
+// Disable the alternate shelf layout.
+const char kAshDisableAlternateShelfLayout[] =
+ "ash-disable-alternate-shelf-layout";
+
#if defined(OS_CHROMEOS)
// Disable the status tray volume menu for allowing the user to choose an audio
// input and output device.
@@ -180,8 +184,8 @@ const char kAshDisableDragAndDropAppListToLauncher[] =
const char kForcedMaximizeMode[] = "forced-maximize-mode";
bool UseAlternateShelfLayout() {
- return CommandLine::ForCurrentProcess()->
- HasSwitch(ash::switches::kAshUseAlternateShelfLayout);
+ return !CommandLine::ForCurrentProcess()->
+ HasSwitch(ash::switches::kAshDisableAlternateShelfLayout);
}
bool UseDragOffShelf() {
@@ -190,8 +194,8 @@ bool UseDragOffShelf() {
}
bool ShowShelfAlignmentMenu() {
- return CommandLine::ForCurrentProcess()->
- HasSwitch(switches::kShowShelfAlignmentMenu);
+ return !CommandLine::ForCurrentProcess()->
+ HasSwitch(switches::kHideShelfAlignmentMenu);
}
#if defined(OS_CHROMEOS)
« no previous file with comments | « ash/ash_switches.h ('k') | ash/dip_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698