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

Unified Diff: chrome/browser/themes/theme_service_factory.cc

Issue 1102733002: Remove most occurences of PrefRegistrySyncable::UNSYNCABLE_PREF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs-add-reg-funcs
Patch Set: Created 5 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/themes/theme_service_factory.cc
diff --git a/chrome/browser/themes/theme_service_factory.cc b/chrome/browser/themes/theme_service_factory.cc
index b08fba667e8269fe3e20a871337bc8c7cd85768e..1858854f83a0c833fc554b297691397b73cdf425 100644
--- a/chrome/browser/themes/theme_service_factory.cc
+++ b/chrome/browser/themes/theme_service_factory.cc
@@ -75,31 +75,17 @@ void ThemeServiceFactory::RegisterProfilePrefs(
default_uses_system_theme = linux_ui->GetDefaultUsesSystemTheme();
#endif
- registry->RegisterBooleanPref(
- prefs::kUsesSystemTheme,
- default_uses_system_theme,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ registry->RegisterBooleanPref(prefs::kUsesSystemTheme,
+ default_uses_system_theme);
#endif
- registry->RegisterFilePathPref(
- prefs::kCurrentThemePackFilename,
- base::FilePath(),
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
- registry->RegisterStringPref(
- prefs::kCurrentThemeID,
- ThemeService::kDefaultThemeID,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
- registry->RegisterDictionaryPref(
- prefs::kCurrentThemeImages,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
- registry->RegisterDictionaryPref(
- prefs::kCurrentThemeColors,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
- registry->RegisterDictionaryPref(
- prefs::kCurrentThemeTints,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
- registry->RegisterDictionaryPref(
- prefs::kCurrentThemeDisplayProperties,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ registry->RegisterFilePathPref(prefs::kCurrentThemePackFilename,
+ base::FilePath());
+ registry->RegisterStringPref(prefs::kCurrentThemeID,
+ ThemeService::kDefaultThemeID);
+ registry->RegisterDictionaryPref(prefs::kCurrentThemeImages);
+ registry->RegisterDictionaryPref(prefs::kCurrentThemeColors);
+ registry->RegisterDictionaryPref(prefs::kCurrentThemeTints);
+ registry->RegisterDictionaryPref(prefs::kCurrentThemeDisplayProperties);
}
content::BrowserContext* ThemeServiceFactory::GetBrowserContextToUse(
« no previous file with comments | « chrome/browser/supervised_user/supervised_user_whitelist_service.cc ('k') | chrome/browser/ui/app_list/app_list_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698