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

Unified 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 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/chromeos_switches.h ('k') | tools/metrics/actions/actions.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/chromeos_switches.cc
diff --git a/chromeos/chromeos_switches.cc b/chromeos/chromeos_switches.cc
index d67b832d14e2bb8a503adeb2dbe8efad70fd5ff4..b9da8ce6449e6cd7e22d8b276345c7c953b7a71b 100644
--- a/chromeos/chromeos_switches.cc
+++ b/chromeos/chromeos_switches.cc
@@ -4,6 +4,8 @@
#include "chromeos/chromeos_switches.h"
+#include "base/command_line.h"
+
namespace chromeos {
namespace switches {
@@ -77,6 +79,9 @@ const char kDisableRollbackOption[] = "disable-rollback-option";
// Disables volume adjust sound.
const char kDisableVolumeAdjustSound[] = "disable-volume-adjust-sound";
+// Disables wake on wifi features.
+const char kDisableWakeOnWifi[] = "disable-wake-on-wifi";
+
// Disables notifications about captive portals in session.
const char kDisableNetworkPortalNotification[] =
"disable-network-portal-notification";
@@ -279,5 +284,10 @@ const char kArtifactsDir[] = "artifacts-dir";
const char kEnableCaptivePortalBypassProxy[] =
"enable-captive-portal-bypass-proxy";
+bool WakeOnWifiEnabled() {
+ return !CommandLine::ForCurrentProcess()->HasSwitch(
+ kDisableWakeOnWifi);
+}
+
} // namespace switches
} // namespace chromeos
« 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