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

Side by Side Diff: ash/ash_switches.cc

Issue 165393013: Resubmit 'Refactor the TrayAudio code so that it can be used by other platforms.' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT 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
« no previous file with comments | « ash/ash_switches.h ('k') | 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 bool ShowAudioDeviceMenu() {
259 #if defined(OS_CHROMEOS) 260 #if defined(OS_CHROMEOS)
260 bool ShowAudioDeviceMenu() {
261 return !CommandLine::ForCurrentProcess()-> 261 return !CommandLine::ForCurrentProcess()->
262 HasSwitch(kAshDisableAudioDeviceMenu); 262 HasSwitch(kAshDisableAudioDeviceMenu);
263 #else
264 return false;
265 #endif
263 } 266 }
264 267
268 #if defined(OS_CHROMEOS)
265 bool UseUsbChargerNotification() { 269 bool UseUsbChargerNotification() {
266 return !CommandLine::ForCurrentProcess()-> 270 return !CommandLine::ForCurrentProcess()->
267 HasSwitch(kAshDisableUsbChargerNotification); 271 HasSwitch(kAshDisableUsbChargerNotification);
268 } 272 }
269 #endif 273 #endif
270 274
271 } // namespace switches 275 } // namespace switches
272 } // namespace ash 276 } // namespace ash
OLDNEW
« no previous file with comments | « ash/ash_switches.h ('k') | ash/system/audio/audio_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698