| 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
|
|
|