Index: chrome/browser/profiles/profile.cc |
diff --git a/chrome/browser/profiles/profile.cc b/chrome/browser/profiles/profile.cc |
index a0e6f6773fdb9a9fd3c1707f84692ccc307ec212..a7c2fa9509cb9d6efc1855876264518430bfbd0e 100644 |
--- a/chrome/browser/profiles/profile.cc |
+++ b/chrome/browser/profiles/profile.cc |
@@ -56,41 +56,54 @@ Profile::Delegate::~Delegate() { |
const char Profile::kProfileKey[] = "__PROFILE__"; |
// static |
-void Profile::RegisterUserPrefs(PrefRegistrySyncable* registry) { |
- registry->RegisterBooleanPref(prefs::kSearchSuggestEnabled, |
- true, |
- PrefRegistrySyncable::SYNCABLE_PREF); |
- registry->RegisterBooleanPref(prefs::kSessionExitedCleanly, |
- true, |
- PrefRegistrySyncable::UNSYNCABLE_PREF); |
- registry->RegisterStringPref(prefs::kSessionExitType, |
- std::string(), |
- PrefRegistrySyncable::UNSYNCABLE_PREF); |
- registry->RegisterBooleanPref(prefs::kSafeBrowsingEnabled, |
- true, |
- PrefRegistrySyncable::SYNCABLE_PREF); |
- registry->RegisterBooleanPref(prefs::kSafeBrowsingReportingEnabled, |
- false, |
- PrefRegistrySyncable::UNSYNCABLE_PREF); |
- registry->RegisterBooleanPref(prefs::kSafeBrowsingProceedAnywayDisabled, |
- false, |
- PrefRegistrySyncable::UNSYNCABLE_PREF); |
- registry->RegisterBooleanPref(prefs::kDisableExtensions, |
- false, |
- PrefRegistrySyncable::UNSYNCABLE_PREF); |
- registry->RegisterBooleanPref(prefs::kExtensionAlertsInitializedPref, |
- false, PrefRegistrySyncable::UNSYNCABLE_PREF); |
- registry->RegisterStringPref(prefs::kSelectFileLastDirectory, |
- std::string(), |
- PrefRegistrySyncable::UNSYNCABLE_PREF); |
- registry->RegisterDoublePref(prefs::kDefaultZoomLevel, |
- 0.0, |
- PrefRegistrySyncable::UNSYNCABLE_PREF); |
- registry->RegisterDictionaryPref(prefs::kPerHostZoomLevels, |
- PrefRegistrySyncable::UNSYNCABLE_PREF); |
- registry->RegisterStringPref(prefs::kDefaultApps, |
- "install", |
- PrefRegistrySyncable::UNSYNCABLE_PREF); |
+void Profile::RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry) { |
+ registry->RegisterBooleanPref( |
+ prefs::kSearchSuggestEnabled, |
+ true, |
+ user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
+ registry->RegisterBooleanPref( |
+ prefs::kSessionExitedCleanly, |
+ true, |
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
+ registry->RegisterStringPref( |
+ prefs::kSessionExitType, |
+ std::string(), |
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
+ registry->RegisterBooleanPref( |
+ prefs::kSafeBrowsingEnabled, |
+ true, |
+ user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
+ registry->RegisterBooleanPref( |
+ prefs::kSafeBrowsingReportingEnabled, |
+ false, |
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
+ registry->RegisterBooleanPref( |
+ prefs::kSafeBrowsingProceedAnywayDisabled, |
+ false, |
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
+ registry->RegisterBooleanPref( |
+ prefs::kDisableExtensions, |
+ false, |
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
+ registry->RegisterBooleanPref( |
+ prefs::kExtensionAlertsInitializedPref, |
+ false, |
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
+ registry->RegisterStringPref( |
+ prefs::kSelectFileLastDirectory, |
+ std::string(), |
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
+ registry->RegisterDoublePref( |
+ prefs::kDefaultZoomLevel, |
+ 0.0, |
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
+ registry->RegisterDictionaryPref( |
+ prefs::kPerHostZoomLevels, |
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
+ registry->RegisterStringPref( |
+ prefs::kDefaultApps, |
+ "install", |
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
#if defined(OS_CHROMEOS) |
// TODO(dilmah): For OS_CHROMEOS we maintain kApplicationLocale in both |
// local state and user's profile. For other platforms we maintain |
@@ -99,24 +112,28 @@ void Profile::RegisterUserPrefs(PrefRegistrySyncable* registry) { |
// in user's profile for other platforms as well. |
registry->RegisterStringPref(prefs::kApplicationLocale, |
std::string(), |
- PrefRegistrySyncable::SYNCABLE_PREF); |
- registry->RegisterStringPref(prefs::kApplicationLocaleBackup, |
- std::string(), |
- PrefRegistrySyncable::UNSYNCABLE_PREF); |
- registry->RegisterStringPref(prefs::kApplicationLocaleAccepted, |
- std::string(), |
- PrefRegistrySyncable::UNSYNCABLE_PREF); |
+ user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
+ registry->RegisterStringPref( |
+ prefs::kApplicationLocaleBackup, |
+ std::string(), |
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
+ registry->RegisterStringPref( |
+ prefs::kApplicationLocaleAccepted, |
+ std::string(), |
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
#endif |
#if defined(OS_ANDROID) |
- registry->RegisterBooleanPref(prefs::kDevToolsRemoteEnabled, |
- false, |
- PrefRegistrySyncable::UNSYNCABLE_PREF); |
+ registry->RegisterBooleanPref( |
+ prefs::kDevToolsRemoteEnabled, |
+ false, |
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
#endif |
#if defined(OS_ANDROID) || defined(OS_IOS) |
- registry->RegisterBooleanPref(prefs::kSpdyProxyAuthEnabled, |
- false, |
- PrefRegistrySyncable::UNSYNCABLE_PREF); |
+ registry->RegisterBooleanPref( |
+ prefs::kSpdyProxyAuthEnabled, |
+ false, |
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
#endif // defined(OS_ANDROID) || defined(OS_IOS) |
} |