| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |