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

Unified Diff: chrome/browser/translate/translate_prefs.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
« no previous file with comments | « chrome/browser/translate/translate_prefs.h ('k') | chrome/browser/ui/alternate_error_tab_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/translate/translate_prefs.cc
diff --git a/chrome/browser/translate/translate_prefs.cc b/chrome/browser/translate/translate_prefs.cc
index d9cb616346b765269f7b0acfb472d30dd20ee751..0831128e2cba742a9400966529fa3b03ab74b95a 100644
--- a/chrome/browser/translate/translate_prefs.cc
+++ b/chrome/browser/translate/translate_prefs.cc
@@ -174,17 +174,21 @@ bool TranslatePrefs::ShouldAutoTranslate(PrefService* user_prefs,
return prefs.IsLanguageWhitelisted(original_language, target_language);
}
-void TranslatePrefs::RegisterUserPrefs(PrefRegistrySyncable* registry) {
+void TranslatePrefs::RegisterUserPrefs(
+ user_prefs::PrefRegistrySyncable* registry) {
registry->RegisterListPref(kPrefTranslateLanguageBlacklist,
- PrefRegistrySyncable::SYNCABLE_PREF);
+ user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
registry->RegisterListPref(kPrefTranslateSiteBlacklist,
- PrefRegistrySyncable::SYNCABLE_PREF);
- registry->RegisterDictionaryPref(kPrefTranslateWhitelists,
- PrefRegistrySyncable::SYNCABLE_PREF);
- registry->RegisterDictionaryPref(kPrefTranslateDeniedCount,
- PrefRegistrySyncable::SYNCABLE_PREF);
- registry->RegisterDictionaryPref(kPrefTranslateAcceptedCount,
- PrefRegistrySyncable::SYNCABLE_PREF);
+ user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
+ registry->RegisterDictionaryPref(
+ kPrefTranslateWhitelists,
+ user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
+ registry->RegisterDictionaryPref(
+ kPrefTranslateDeniedCount,
+ user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
+ registry->RegisterDictionaryPref(
+ kPrefTranslateAcceptedCount,
+ user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
}
void TranslatePrefs::MigrateUserPrefs(PrefService* user_prefs) {
« no previous file with comments | « chrome/browser/translate/translate_prefs.h ('k') | chrome/browser/ui/alternate_error_tab_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698