| 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 "chromeos/chromeos_switches.h" | 5 #include "chromeos/chromeos_switches.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 | 8 |
| 9 namespace chromeos { | 9 namespace chromeos { |
| 10 namespace switches { | 10 namespace switches { |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 // Disables volume adjust sound. | 79 // Disables volume adjust sound. |
| 80 const char kDisableVolumeAdjustSound[] = "disable-volume-adjust-sound"; | 80 const char kDisableVolumeAdjustSound[] = "disable-volume-adjust-sound"; |
| 81 | 81 |
| 82 // Disables wake on wifi features. | 82 // Disables wake on wifi features. |
| 83 const char kDisableWakeOnWifi[] = "disable-wake-on-wifi"; | 83 const char kDisableWakeOnWifi[] = "disable-wake-on-wifi"; |
| 84 | 84 |
| 85 // Disables notifications about captive portals in session. | 85 // Disables notifications about captive portals in session. |
| 86 const char kDisableNetworkPortalNotification[] = | 86 const char kDisableNetworkPortalNotification[] = |
| 87 "disable-network-portal-notification"; | 87 "disable-network-portal-notification"; |
| 88 | 88 |
| 89 // Enables switching between different cellular carriers from the UI. | |
| 90 const char kEnableCarrierSwitching[] = "enable-carrier-switching"; | |
| 91 | |
| 92 // Enables cloud backup feature. | 89 // Enables cloud backup feature. |
| 93 const char kEnableCloudBackup[] = "enable-cloud-backup"; | 90 const char kEnableCloudBackup[] = "enable-cloud-backup"; |
| 94 | 91 |
| 95 // Enables consumer management, which allows user to enroll, remotely lock and | 92 // Enables consumer management, which allows user to enroll, remotely lock and |
| 96 // locate the device. | 93 // locate the device. |
| 97 const char kEnableConsumerManagement[] = "enable-consumer-management"; | 94 const char kEnableConsumerManagement[] = "enable-consumer-management"; |
| 98 | 95 |
| 99 // If this switch is set, the device cannot be remotely disabled by its owner. | 96 // If this switch is set, the device cannot be remotely disabled by its owner. |
| 100 const char kDisableDeviceDisabling[] = "disable-device-disabling"; | 97 const char kDisableDeviceDisabling[] = "disable-device-disabling"; |
| 101 | 98 |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 // Bypass proxy for captive portal authorization. | 280 // Bypass proxy for captive portal authorization. |
| 284 const char kEnableCaptivePortalBypassProxy[] = | 281 const char kEnableCaptivePortalBypassProxy[] = |
| 285 "enable-captive-portal-bypass-proxy"; | 282 "enable-captive-portal-bypass-proxy"; |
| 286 | 283 |
| 287 bool WakeOnWifiEnabled() { | 284 bool WakeOnWifiEnabled() { |
| 288 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); | 285 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); |
| 289 } | 286 } |
| 290 | 287 |
| 291 } // namespace switches | 288 } // namespace switches |
| 292 } // namespace chromeos | 289 } // namespace chromeos |
| OLD | NEW |