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

Unified Diff: chrome/browser/google/google_url_tracker_factory.cc

Issue 11570009: Split PrefService into PrefService, PrefServiceSimple and PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head again, previous had unrelated broken win_rel test. Created 8 years 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/google/google_url_tracker_factory.h ('k') | chrome/browser/gpu/gl_string_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google/google_url_tracker_factory.cc
diff --git a/chrome/browser/google/google_url_tracker_factory.cc b/chrome/browser/google/google_url_tracker_factory.cc
index 1908961c3bdf90022b4cdc2c25dec7fe9555bb87..732cdc15627404ea31bebd8ad3565b159b2b39e1 100644
--- a/chrome/browser/google/google_url_tracker_factory.cc
+++ b/chrome/browser/google/google_url_tracker_factory.cc
@@ -34,11 +34,14 @@ ProfileKeyedService* GoogleURLTrackerFactory::BuildServiceInstanceFor(
return new GoogleURLTracker(profile, GoogleURLTracker::NORMAL_MODE);
}
-void GoogleURLTrackerFactory::RegisterUserPrefs(PrefService* user_prefs) {
+void GoogleURLTrackerFactory::RegisterUserPrefs(
+ PrefServiceSyncable* user_prefs) {
user_prefs->RegisterStringPref(prefs::kLastKnownGoogleURL,
- GoogleURLTracker::kDefaultGoogleHomepage, PrefService::UNSYNCABLE_PREF);
- user_prefs->RegisterStringPref(prefs::kLastPromptedGoogleURL, std::string(),
- PrefService::UNSYNCABLE_PREF);
+ GoogleURLTracker::kDefaultGoogleHomepage,
+ PrefServiceSyncable::UNSYNCABLE_PREF);
+ user_prefs->RegisterStringPref(prefs::kLastPromptedGoogleURL,
+ std::string(),
+ PrefServiceSyncable::UNSYNCABLE_PREF);
}
bool GoogleURLTrackerFactory::ServiceRedirectedInIncognito() const {
« no previous file with comments | « chrome/browser/google/google_url_tracker_factory.h ('k') | chrome/browser/gpu/gl_string_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698