15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copyright (c) 2012 The Chromium Authors. All rights reserved.
25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file.
45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "ash/ash_switches.h"
65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles)#include "base/command_line.h"
8a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles)
95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)namespace ash {
105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)namespace switches {
115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables an animated transition from the boot splash screen (Chrome logo on a
135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// white background) to the login screen.  Implies
145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// |kAshCopyHostBackgroundAtBoot| and doesn't make much sense if used in
155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// conjunction with |kDisableBootAnimation| (since the transition begins at the
165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// same time as the white/grayscale login screen animation).
175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAshAnimateFromBootSplashScreen[] =
185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "ash-animate-from-boot-splash-screen";
195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Constrains the pointer movement within a root window on desktop.
215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root";
225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copies the host window's content to the system background layer at startup.
245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Can make boot slightly slower, but also hides an even-longer awkward period
255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// where we display a white background if the login wallpaper takes a long time
265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// to load.
275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAshCopyHostBackgroundAtBoot[] = "ash-copy-host-background-at-boot";
285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enable keyboard shortcuts useful for debugging.
305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAshDebugShortcuts[] = "ash-debug-shortcuts";
315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
327dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// UI to show preferred networks in the status area (for testing).
337dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kAshDebugShowPreferredNetworks[] =
347dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch    "ash-debug-show-preferred-networks";
357dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch
36eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// Default wallpaper to use in guest mode (as paths to trusted,
37eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// non-user-writable JPEG files).
38eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochconst char kAshDefaultGuestWallpaperLarge[] =
39eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch    "ash-default-guest-wallpaper-large";
40eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochconst char kAshDefaultGuestWallpaperSmall[] =
41eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch    "ash-default-guest-wallpaper-small";
42eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
43eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// Default wallpaper to use (as paths to trusted, non-user-writable JPEG files).
44eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochconst char kAshDefaultWallpaperLarge[] = "ash-default-wallpaper-large";
45eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochconst char kAshDefaultWallpaperSmall[] = "ash-default-wallpaper-small";
46eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
47ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch#if defined(OS_CHROMEOS)
48ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// Disable the status tray volume menu for allowing the user to choose an audio
49ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// input and output device.
50ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdochconst char kAshDisableAudioDeviceMenu[] =
51ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch    "ash-disable-audio-device-menu";
52ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch#endif
53ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch
54c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Disable auto window maximization logic.
55c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kAshDisableAutoMaximizing[] = "ash-disable-auto-maximizing";
56c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable support for auto window placement.
585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAshDisableAutoWindowPlacement[] =
595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "ash-enable-auto-window-placement";
605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
612a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Disables the limitter to throttle how quickly a user
622a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// can change display settings.
632a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kAshDisableDisplayChangeLimiter[] =
642a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "ash-disable-display-change-limiter";
652a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
662a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// If present new lock animations are enabled.
672a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kAshDisableNewLockAnimations[] = "ash-disable-new-lock-animations";
682a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
692a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Disable the per application grouping version of the launcher.
702a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kAshDisablePerAppLauncher[] = "ash-disable-per-app-launcher";
712a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
722a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Disables display rotation.
732a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kAshDisableDisplayRotation[] = "ash-disable-display-rotation";
742a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
75c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Disable immersive fullscreen mode, regardless of default setting.
76c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kAshDisableImmersiveFullscreen[] =
77c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)    "ash-disable-immersive-fullscreen";
78c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
792a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Disables ui scaling.
802a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kAshDisableUIScaling[] = "ash-disable-ui-scaling";
815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
82868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)#if defined(OS_CHROMEOS)
83868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Disable compositor based mirroring.
84868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kAshDisableSoftwareMirroring[] = "ash-disable-software-mirroring";
85eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
86eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// Disable the notification when a low-power USB charger is connected.
87eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochconst char kAshDisableUsbChargerNotification[] =
88eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch    "ash-disable-usb-charger-notification";
8958e6fbe4ee35d65e14b626c557d37565bf8ad179Ben Murdoch
9058e6fbe4ee35d65e14b626c557d37565bf8ad179Ben Murdoch// TODO(jamescook): Remove this unused flag. It exists only to allow the
9158e6fbe4ee35d65e14b626c557d37565bf8ad179Ben Murdoch// "Enable audio device menu" about:flags item to have the tri-state
9258e6fbe4ee35d65e14b626c557d37565bf8ad179Ben Murdoch// default/enabled/disabled UI.
9358e6fbe4ee35d65e14b626c557d37565bf8ad179Ben Murdochconst char kAshEnableAudioDeviceMenu[] = "ash-enable-audio-device-menu";
9458e6fbe4ee35d65e14b626c557d37565bf8ad179Ben Murdoch#endif  // defined(OS_CHROMEOS)
95868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enable advanced gestures (e.g. for window management).
975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAshEnableAdvancedGestures[] = "ash-enable-advanced-gestures";
985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
992a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Always enable brightness control. Used by machines that don't report their
1002a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// main monitor as internal.
1012a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kAshEnableBrightnessControl[] = "ash-enable-brightness-control";
1022a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
1037d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// Enable the dock area on a desktop.
1047d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)const char kAshEnableDockedWindows[] = "ash-enable-docked-windows";
1057d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)
106c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Enable immersive fullscreen mode, regardless of default setting.
107c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kAshEnableImmersiveFullscreen[] = "ash-enable-immersive-fullscreen";
108c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
1095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_LINUX)
1105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enable memory monitoring.
1115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAshEnableMemoryMonitor[] = "ash-enable-memory-monitor";
1125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
1135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables the Oak tree viewer.
1155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAshEnableOak[] = "ash-enable-oak";
1165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
117a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// Enables overview mode for window switching.
118a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)const char kAshEnableOverviewMode[] = "ash-enable-overview-mode";
119a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)
120c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Enables "sticky" edges instead of "snap-to-edge"
121c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kAshEnableStickyEdges[] = "ash-enable-sticky-edges";
122c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
1235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables showing the tray bubble by dragging on the shelf.
1245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAshEnableTrayDragging[] = "ash-enable-tray-dragging";
1255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// Forces chrome to use mirror mode when an external display is connected.
12790dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)const char kAshForceMirrorMode[] = "ash-force-mirror-mode";
12890dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)
1297d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// Hides notifications that are irrelevant to Chrome OS device factory testing,
1307d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// such as battery level updates.
1317d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)const char kAshHideNotificationsForFactory[] =
1327d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)    "ash-hide-notifications-for-factory";
1337d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)
1342a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Sets a window size, optional position, and optional scale factor.
1352a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// "1024x768" creates a window of size 1024x768.
1362a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// "100+200-1024x768" positions the window at 100,200.
1372a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// "1024x768*2" sets the scale factor to 2 for a high DPI display.
1382a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kAshHostWindowBounds[] = "ash-host-window-bounds";
1392a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
1402a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Hides the small tab indicators at the top of the screen during immersive
1412a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// fullscreen mode.
1422a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kAshImmersiveHideTabIndicators[] =
1432a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "ash-immersive-hide-tab-indicators";
1445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies the layout mode and offsets for the secondary display for
1465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT,
1475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display
1485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// is positioned on the right with -100 offset. (above than primary)
1495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout";
1505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables the heads-up display for tracking touch points.
1525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAshTouchHud[] = "ash-touch-hud";
1535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1547d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// Use alternate layout of the shelf for testing a new look and feel:
1557d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// Slightly smaller profile, only 2 states for the "bar highlight" on
1567d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// launcher buttons, app list icon with more visible state indication,
1577d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// app list icon repositionable and defaulting as 1st item in shelf,
1587d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// more visible state indication for background on status area.
1597d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// crbug's [244983, 244990, 244994, 245005, 245012]
1607d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)const char kAshUseAlternateShelfLayout[] = "ash-use-alternate-shelf";
1617d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)
162c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Uses the 1st display in --ash-host-window-bounds as internal display.
163c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// This is for debugging on linux desktop.
164c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kAshUseFirstDisplayAsInternal[] =
165c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)    "ash-use-first-display-as-internal";
166c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
1675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (Most) Chrome OS hardware reports ACPI power button releases correctly.
1685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Standard hardware reports releases immediately after presses.  If set, we
1695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// lock the screen or shutdown the system immediately in response to a press
1705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// instead of displaying an interactive animation.
1715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAuraLegacyPowerButton[] = "aura-legacy-power-button";
1725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1732a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#if defined(OS_WIN)
1742a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Force Ash to open its root window on the desktop, even on Windows 8 where
1752a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// it would normally end up in metro.
1762a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kForceAshToDesktop[] = "ash-force-desktop";
177b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)
1782a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#endif
1795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
180868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Disallow items to be dragged from the app launcher list into the launcher.
181868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kAshDisableDragAndDropAppListToLauncher[] =
182868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)    "ash-disable-drag-and-drop-applist-to-launcher";
183b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)
184c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Enables a mode which enforces all browser & application windows to be created
185c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// in maximized mode.
186c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kForcedMaximizeMode[] = "forced-maximize-mode";
187a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles)
188ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdochbool UseAlternateShelfLayout() {
189ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch  return CommandLine::ForCurrentProcess()->
190ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch        HasSwitch(ash::switches::kAshUseAlternateShelfLayout);
191ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch}
192ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch
193ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch#if defined(OS_CHROMEOS)
194a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles)bool ShowAudioDeviceMenu() {
195a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)  return !CommandLine::ForCurrentProcess()->
196a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)      HasSwitch(ash::switches::kAshDisableAudioDeviceMenu);
1977d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)}
1987d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)
199eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochbool UseUsbChargerNotification() {
200eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch  return !CommandLine::ForCurrentProcess()->
201eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch        HasSwitch(ash::switches::kAshDisableUsbChargerNotification);
202eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch}
203eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch#endif
204eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
2055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}  // namespace switches
2065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}  // namespace ash
207