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

Side by Side Diff: chromeos/chromeos_switches.cc

Issue 811973002: Enable lucid sleep (wake on wi-fi SSID) and add to Privacy options. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add function to chromeos::switches. rebase Created 5 years, 12 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 | « chromeos/chromeos_switches.h ('k') | tools/metrics/actions/actions.xml » ('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 "chromeos/chromeos_switches.h" 5 #include "chromeos/chromeos_switches.h"
6 6
7 #include "base/command_line.h"
8
7 namespace chromeos { 9 namespace chromeos {
8 namespace switches { 10 namespace switches {
9 11
10 // Path for app's OEM manifest file. 12 // Path for app's OEM manifest file.
11 const char kAppOemManifestFile[] = "app-mode-oem-manifest"; 13 const char kAppOemManifestFile[] = "app-mode-oem-manifest";
12 14
13 // When wallpaper boot animation is not disabled this switch 15 // When wallpaper boot animation is not disabled this switch
14 // is used to override OOBE/sign in WebUI init type. 16 // is used to override OOBE/sign in WebUI init type.
15 // Possible values: parallel|postpone. Default: parallel. 17 // Possible values: parallel|postpone. Default: parallel.
16 const char kAshWebUIInit[] = "ash-webui-init"; 18 const char kAshWebUIInit[] = "ash-webui-init";
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // testing. 72 // testing.
71 const char kDisableOfficeEditingComponentApp[] = 73 const char kDisableOfficeEditingComponentApp[] =
72 "disable-office-editing-component-extension"; 74 "disable-office-editing-component-extension";
73 75
74 // Disables rollback option on reset screen. 76 // Disables rollback option on reset screen.
75 const char kDisableRollbackOption[] = "disable-rollback-option"; 77 const char kDisableRollbackOption[] = "disable-rollback-option";
76 78
77 // Disables volume adjust sound. 79 // Disables volume adjust sound.
78 const char kDisableVolumeAdjustSound[] = "disable-volume-adjust-sound"; 80 const char kDisableVolumeAdjustSound[] = "disable-volume-adjust-sound";
79 81
82 // Disables wake on wifi features.
83 const char kDisableWakeOnWifi[] = "disable-wake-on-wifi";
84
80 // Disables notifications about captive portals in session. 85 // Disables notifications about captive portals in session.
81 const char kDisableNetworkPortalNotification[] = 86 const char kDisableNetworkPortalNotification[] =
82 "disable-network-portal-notification"; 87 "disable-network-portal-notification";
83 88
84 // Enables switching between different cellular carriers from the UI. 89 // Enables switching between different cellular carriers from the UI.
85 const char kEnableCarrierSwitching[] = "enable-carrier-switching"; 90 const char kEnableCarrierSwitching[] = "enable-carrier-switching";
86 91
87 // Enables cloud backup feature. 92 // Enables cloud backup feature.
88 const char kEnableCloudBackup[] = "enable-cloud-backup"; 93 const char kEnableCloudBackup[] = "enable-cloud-backup";
89 94
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 // stored. 277 // stored.
273 const char kGoldenScreenshotsDir[] = "golden-screenshots-dir"; 278 const char kGoldenScreenshotsDir[] = "golden-screenshots-dir";
274 279
275 // Screenshot testing: specifies the directoru where artifacts will be stored. 280 // Screenshot testing: specifies the directoru where artifacts will be stored.
276 const char kArtifactsDir[] = "artifacts-dir"; 281 const char kArtifactsDir[] = "artifacts-dir";
277 282
278 // Bypass proxy for captive portal authorization. 283 // Bypass proxy for captive portal authorization.
279 const char kEnableCaptivePortalBypassProxy[] = 284 const char kEnableCaptivePortalBypassProxy[] =
280 "enable-captive-portal-bypass-proxy"; 285 "enable-captive-portal-bypass-proxy";
281 286
287 bool WakeOnWifiEnabled() {
288 return !CommandLine::ForCurrentProcess()->HasSwitch(
289 kDisableWakeOnWifi);
290 }
291
282 } // namespace switches 292 } // namespace switches
283 } // namespace chromeos 293 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/chromeos_switches.h ('k') | tools/metrics/actions/actions.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698