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

Unified Diff: chrome/browser/component_updater/recovery_component_installer.cc

Issue 11570009: Split PrefService into PrefService, PrefServiceSimple and PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for review. 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
Index: chrome/browser/component_updater/recovery_component_installer.cc
diff --git a/chrome/browser/component_updater/recovery_component_installer.cc b/chrome/browser/component_updater/recovery_component_installer.cc
index 1c2d61b3c02f5fc8a04ae83d3bdd506df0b7a68b..49084e299ba264ff78180b85dc94193daae5d7ea 100644
--- a/chrome/browser/component_updater/recovery_component_installer.cc
+++ b/chrome/browser/component_updater/recovery_component_installer.cc
@@ -60,7 +60,8 @@ class RecoveryComponentInstaller : public ComponentInstaller {
PrefService* prefs_;
};
-void RecoveryRegisterHelper(ComponentUpdateService* cus, PrefService* prefs) {
+void RecoveryRegisterHelper(ComponentUpdateService* cus,
+ PrefServiceSimple* prefs) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
prefs->RegisterStringPref(prefs::kRecoveryComponentVersion, "0.0.0.0");
Mattias Nissler (ping if slow) 2012/12/19 19:50:22 random note: This shouldn't be registered here but
Jói 2012/12/20 16:30:31 Agreed. Added a TODO to fix it.
Version version(prefs->GetString(prefs::kRecoveryComponentVersion));
@@ -130,7 +131,7 @@ bool RecoveryComponentInstaller::Install(base::DictionaryValue* manifest,
}
void RegisterRecoveryComponent(ComponentUpdateService* cus,
- PrefService* prefs) {
+ PrefServiceSimple* prefs) {
#if !defined(OS_CHROMEOS)
// We delay execute the registration because we are not required in
// the critical path during browser startup.

Powered by Google App Engine
This is Rietveld 408576698