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

Side by Side Diff: trunk/src/ash/ash_switches.cc

Issue 170843009: Revert 251959 "Refactor the TrayAudio code so that it can be use..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « trunk/src/ash/ash_switches.h ('k') | trunk/src/ash/system/audio/audio_observer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/ash_switches.h" 5 #include "ash/ash_switches.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 8
9 namespace ash { 9 namespace ash {
10 namespace switches { 10 namespace switches {
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 } 249 }
250 250
251 bool UseOverviewMode() { 251 bool UseOverviewMode() {
252 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableOverviewMode); 252 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableOverviewMode);
253 } 253 }
254 254
255 bool UseDockedWindows() { 255 bool UseDockedWindows() {
256 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows); 256 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows);
257 } 257 }
258 258
259 #if defined(OS_CHROMEOS)
259 bool ShowAudioDeviceMenu() { 260 bool ShowAudioDeviceMenu() {
260 #if defined(OS_CHROMEOS)
261 return !CommandLine::ForCurrentProcess()-> 261 return !CommandLine::ForCurrentProcess()->
262 HasSwitch(kAshDisableAudioDeviceMenu); 262 HasSwitch(kAshDisableAudioDeviceMenu);
263 #else
264 return false;
265 #endif
266 } 263 }
267 264
268 #if defined(OS_CHROMEOS)
269 bool UseUsbChargerNotification() { 265 bool UseUsbChargerNotification() {
270 return !CommandLine::ForCurrentProcess()-> 266 return !CommandLine::ForCurrentProcess()->
271 HasSwitch(kAshDisableUsbChargerNotification); 267 HasSwitch(kAshDisableUsbChargerNotification);
272 } 268 }
273 #endif 269 #endif
274 270
275 } // namespace switches 271 } // namespace switches
276 } // namespace ash 272 } // namespace ash
OLDNEW
« no previous file with comments | « trunk/src/ash/ash_switches.h ('k') | trunk/src/ash/system/audio/audio_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698