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

Unified Diff: chrome/browser/instant/promo_counter.cc

Issue 6905044: Refactor preference syncing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Really fix. And rebase Created 9 years, 7 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/instant/instant_controller.cc ('k') | chrome/browser/net/net_pref_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/instant/promo_counter.cc
diff --git a/chrome/browser/instant/promo_counter.cc b/chrome/browser/instant/promo_counter.cc
index 91df78ed9b8f6a3c7dd6bcdb1bcf462b190e123a..52e1afcc4adf5cedf8591d5db6af83921be200a6 100644
--- a/chrome/browser/instant/promo_counter.cc
+++ b/chrome/browser/instant/promo_counter.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -39,9 +39,15 @@ PromoCounter::~PromoCounter() {
// static
void PromoCounter::RegisterUserPrefs(PrefService* prefs,
const std::string& base_key) {
- prefs->RegisterBooleanPref((base_key + kShowKey).c_str(), true);
- prefs->RegisterIntegerPref((base_key + kNumSessionsKey).c_str(), 0);
- prefs->RegisterInt64Pref((base_key + kInitialTimeKey).c_str(), 0);
+ prefs->RegisterBooleanPref((base_key + kShowKey).c_str(),
+ true,
+ PrefService::UNSYNCABLE_PREF);
+ prefs->RegisterIntegerPref((base_key + kNumSessionsKey).c_str(),
+ 0,
+ PrefService::UNSYNCABLE_PREF);
+ prefs->RegisterInt64Pref((base_key + kInitialTimeKey).c_str(),
+ 0,
+ PrefService::UNSYNCABLE_PREF);
}
bool PromoCounter::ShouldShow(base::Time current_time) {
« no previous file with comments | « chrome/browser/instant/instant_controller.cc ('k') | chrome/browser/net/net_pref_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698