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

Unified Diff: chrome/browser/chromeos/preferences.cc

Issue 1022333002: Initial CL for Data Saver (Flywheel) prompt when cellular network detected (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add command line flags to histograms.xml Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/chromeos/status/data_promo_notification.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/preferences.cc
diff --git a/chrome/browser/chromeos/preferences.cc b/chrome/browser/chromeos/preferences.cc
index d181107aeb5075ddcb9924ed715355fba79615a9..e0cb1f5d608fb8c16ef07f856c35a2fdfe295d05 100644
--- a/chrome/browser/chromeos/preferences.cc
+++ b/chrome/browser/chromeos/preferences.cc
@@ -292,6 +292,12 @@ void Preferences::RegisterProfilePrefs(
true,
user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ // Number of times Data Saver prompt has been shown on 3G data network.
+ registry->RegisterIntegerPref(
+ prefs::kDataSaverPromptsShown,
+ 0,
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+
// Initially all existing users would see "What's new" for current version
// after update.
registry->RegisterStringPref(prefs::kChromeOSReleaseNotesVersion,
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/chromeos/status/data_promo_notification.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698