diff options
author | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-23 18:05:38 +0000 |
---|---|---|
committer | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-23 18:05:38 +0000 |
commit | ea1eba54bea492a5fb15087f83f6eaa2baedf79c (patch) | |
tree | dcf193fa10d41bbad1ebd320697a79a97637794d /chrome/browser/chromeos/preferences.cc | |
parent | c9bfe40d84ec61ebf3a4d205e6aad85175871ce2 (diff) | |
download | chromium_src-ea1eba54bea492a5fb15087f83f6eaa2baedf79c.zip chromium_src-ea1eba54bea492a5fb15087f83f6eaa2baedf79c.tar.gz chromium_src-ea1eba54bea492a5fb15087f83f6eaa2baedf79c.tar.bz2 |
Add a boolean prefs for mobile plan notification checkbox.
- Add a boolean prefs "settings.internet.mobile.show_plan_notifications";
- Hook it with the mobile plan notification checkbox on settings page;
- Update NetworkMessageObserver::OnCellularDataPlanChanged to respect
the prefs;
BUG=chromium-os:9327
TEST=Verify fix for chromium-os:9327 and mobile plan notifications could be turn on/off via the checkbox;
Review URL: http://codereview.chromium.org/5197006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67118 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/preferences.cc')
-rw-r--r-- | chrome/browser/chromeos/preferences.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/preferences.cc b/chrome/browser/chromeos/preferences.cc index c890a9c..ce0cbf4 100644 --- a/chrome/browser/chromeos/preferences.cc +++ b/chrome/browser/chromeos/preferences.cc @@ -116,6 +116,9 @@ void Preferences::RegisterUserPrefs(PrefService* prefs) { // Screen lock default to off. prefs->RegisterBooleanPref(prefs::kEnableScreenLock, false); + + // Mobile plan notifications default to on. + prefs->RegisterBooleanPref(prefs::kShowPlanNotifications, true); } void Preferences::Init(PrefService* prefs) { |