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

Unified Diff: chrome/browser/spellchecker/spellcheck_factory.cc

Issue 14622003: components: Move PrefRegistrySyncable into user_prefs namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 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
Index: chrome/browser/spellchecker/spellcheck_factory.cc
diff --git a/chrome/browser/spellchecker/spellcheck_factory.cc b/chrome/browser/spellchecker/spellcheck_factory.cc
index 87dabaf874eb10d130e87024ad47663e75d65a5e..7ac11ba771201e1c2b3537b93fda2e97f805bb8a 100644
--- a/chrome/browser/spellchecker/spellcheck_factory.cc
+++ b/chrome/browser/spellchecker/spellcheck_factory.cc
@@ -71,24 +71,28 @@ ProfileKeyedService* SpellcheckServiceFactory::BuildServiceInstanceFor(
}
void SpellcheckServiceFactory::RegisterUserPrefs(
- PrefRegistrySyncable* user_prefs) {
+ user_prefs::PrefRegistrySyncable* user_prefs) {
// TODO(estade): IDS_SPELLCHECK_DICTIONARY should be an ASCII string.
user_prefs->RegisterLocalizedStringPref(
prefs::kSpellCheckDictionary,
IDS_SPELLCHECK_DICTIONARY,
- PrefRegistrySyncable::UNSYNCABLE_PREF);
- user_prefs->RegisterBooleanPref(prefs::kSpellCheckConfirmDialogShown,
- false,
- PrefRegistrySyncable::UNSYNCABLE_PREF);
- user_prefs->RegisterBooleanPref(prefs::kSpellCheckUseSpellingService,
- false,
- PrefRegistrySyncable::UNSYNCABLE_PREF);
- user_prefs->RegisterBooleanPref(prefs::kEnableContinuousSpellcheck,
- true,
- PrefRegistrySyncable::SYNCABLE_PREF);
- user_prefs->RegisterBooleanPref(prefs::kEnableAutoSpellCorrect,
- false,
- PrefRegistrySyncable::SYNCABLE_PREF);
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ user_prefs->RegisterBooleanPref(
+ prefs::kSpellCheckConfirmDialogShown,
+ false,
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ user_prefs->RegisterBooleanPref(
+ prefs::kSpellCheckUseSpellingService,
+ false,
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ user_prefs->RegisterBooleanPref(
+ prefs::kEnableContinuousSpellcheck,
+ true,
+ user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
+ user_prefs->RegisterBooleanPref(
+ prefs::kEnableAutoSpellCorrect,
+ false,
+ user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
}
content::BrowserContext* SpellcheckServiceFactory::GetBrowserContextToUse(
« no previous file with comments | « chrome/browser/spellchecker/spellcheck_factory.h ('k') | chrome/browser/sync/invalidations/invalidator_storage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698