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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/preferences.h" 5 #include "chrome/browser/chromeos/preferences.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "ash/autoclick/autoclick_controller.h" 9 #include "ash/autoclick/autoclick_controller.h"
10 #include "ash/shell.h" 10 #include "ash/shell.h"
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 prefs::kShowPlanNotifications, 285 prefs::kShowPlanNotifications,
286 true, 286 true,
287 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 287 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
288 288
289 // 3G first-time usage promo will be shown at least once. 289 // 3G first-time usage promo will be shown at least once.
290 registry->RegisterBooleanPref( 290 registry->RegisterBooleanPref(
291 prefs::kShow3gPromoNotification, 291 prefs::kShow3gPromoNotification,
292 true, 292 true,
293 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 293 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
294 294
295 // Number of times Data Saver prompt has been shown on 3G data network.
296 registry->RegisterIntegerPref(
297 prefs::kDataSaverPromptsShown,
298 0,
299 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
300
295 // Initially all existing users would see "What's new" for current version 301 // Initially all existing users would see "What's new" for current version
296 // after update. 302 // after update.
297 registry->RegisterStringPref(prefs::kChromeOSReleaseNotesVersion, 303 registry->RegisterStringPref(prefs::kChromeOSReleaseNotesVersion,
298 "0.0.0.0", 304 "0.0.0.0",
299 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 305 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
300 306
301 registry->RegisterBooleanPref( 307 registry->RegisterBooleanPref(
302 prefs::kExternalStorageDisabled, 308 prefs::kExternalStorageDisabled,
303 false, 309 false,
304 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 310 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 touch_hud_projection_enabled_.SetValue(enabled); 738 touch_hud_projection_enabled_.SetValue(enabled);
733 } 739 }
734 740
735 void Preferences::ActiveUserChanged(const user_manager::User* active_user) { 741 void Preferences::ActiveUserChanged(const user_manager::User* active_user) {
736 if (active_user != user_) 742 if (active_user != user_)
737 return; 743 return;
738 ApplyPreferences(REASON_ACTIVE_USER_CHANGED, ""); 744 ApplyPreferences(REASON_ACTIVE_USER_CHANGED, "");
739 } 745 }
740 746
741 } // namespace chromeos 747 } // namespace chromeos
OLDNEW
« 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