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

Unified Diff: ash/ash_switches.cc

Issue 16900002: Added flag for alternate launcher settings (remaining changes to come). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 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: ash/ash_switches.cc
diff --git a/ash/ash_switches.cc b/ash/ash_switches.cc
index ab46df475b15ae03e376d25714905d856a5b1407..4ff6d253b02f606699e0fa012b209e857d00f52d 100644
--- a/ash/ash_switches.cc
+++ b/ash/ash_switches.cc
@@ -120,6 +120,10 @@ const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout";
// Enables the heads-up display for tracking touch points.
const char kAshTouchHud[] = "ash-touch-hud";
+// Use alternate layout of the shelf for testing a new look and feel:
+// crbug's [244983, 244990, 244994, 245005, 245012]
James Cook 2013/06/13 15:55:30 I would explain briefly the changes here, rather t
Harry McCleave 2013/06/13 22:30:42 Done.
+const char kAshUseAlternateShelfLayout[] = "ash-use-alt-shelf";
James Cook 2013/06/13 15:55:30 Should this be ash-use-alternate-shelf to be more
Harry McCleave 2013/06/13 22:30:42 Done.
+
// Uses the 1st display in --ash-host-window-bounds as internal display.
// This is for debugging on linux desktop.
const char kAshUseFirstDisplayAsInternal[] =
@@ -157,5 +161,10 @@ bool ShowAudioDeviceMenu() {
HasSwitch(ash::switches::kAshEnableAudioDeviceMenu);
}
+bool UseAlternateShelfLayout() {
James Cook 2013/06/13 15:55:30 I like this pattern of a UseFoo() function.
+ return CommandLine::ForCurrentProcess()->
+ HasSwitch(ash::switches::kAshUseAlternateShelfLayout);
+}
+
} // namespace switches
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698