Enable lucid sleep (wake on wi-fi SSID) and add to Privacy options.
commit592b07ae355027d6128b4b2cb2c603e3159787bf
authormichaelpg <michaelpg@chromium.org>
Tue, 23 Dec 2014 19:46:09 +0000 (23 11:46 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 23 Dec 2014 19:47:41 +0000 (23 19:47 +0000)
treeb933bfa37dc8fe567fda162be442fe30715e67ca
parente2a5c5df8bcc5571b451549cc8b6b4f99676b61b
Enable lucid sleep (wake on wi-fi SSID) and add to Privacy options.

* Change the wake on wifi pref to a boolean. Eventually we will need to worry about packets, but for now having an integer pref makes things too complicated, partially because if/when we do add the packets feature, we don't want to overwrite user settings.
* Make the WakeOnWifiFeatures enum bitfield-like for easier setting of the options now and in the future.
* Set the pref to enabled by default.
* Add the --disable-wake-on-wifi kill switch to WakeOnWifiManager.
* --wake-on-packet still works unless --disable-wake-on-wifi is also specified.

BUG=424719
R=stevenjb@chromium.org,asvitkine@chromium.org
CC=dbeam@chromium.org

TBR=asvitkine@chromium.org
# asvitkine OOO, but this complies with his past reviews

Review URL: https://codereview.chromium.org/811973002

Cr-Commit-Position: refs/heads/master@{#309576}
14 files changed:
chrome/app/chromeos_strings.grdp
chrome/browser/chromeos/net/wake_on_wifi_manager.cc
chrome/browser/chromeos/net/wake_on_wifi_manager.h
chrome/browser/chromeos/preferences.cc
chrome/browser/chromeos/preferences.h
chrome/browser/resources/options/browser_options.html
chrome/browser/resources/options/browser_options.js
chrome/browser/ui/webui/options/browser_options_handler.cc
chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc
chrome/common/pref_names.cc
chrome/common/pref_names.h
chromeos/chromeos_switches.cc
chromeos/chromeos_switches.h
tools/metrics/actions/actions.xml