| Index: chrome/browser/profiles/profile.cc
|
| diff --git a/chrome/browser/profiles/profile.cc b/chrome/browser/profiles/profile.cc
|
| index 7ed0c6ca731dcefb72bd6ea1822e5dd4d34adb59..1f4ca82ea6f472d5f5496aec85cee05f8790457a 100644
|
| --- a/chrome/browser/profiles/profile.cc
|
| +++ b/chrome/browser/profiles/profile.cc
|
| @@ -95,37 +95,68 @@ const ProfileId Profile::kInvalidProfileId = static_cast<ProfileId>(0);
|
|
|
| // static
|
| void Profile::RegisterUserPrefs(PrefService* prefs) {
|
| - prefs->RegisterBooleanPref(prefs::kSearchSuggestEnabled, true);
|
| - prefs->RegisterBooleanPref(prefs::kSessionExitedCleanly, true);
|
| - prefs->RegisterBooleanPref(prefs::kSafeBrowsingEnabled, true);
|
| - prefs->RegisterBooleanPref(prefs::kSafeBrowsingReportingEnabled, false);
|
| + prefs->RegisterBooleanPref(prefs::kSearchSuggestEnabled,
|
| + true,
|
| + true /* sync pref */);
|
| + prefs->RegisterBooleanPref(prefs::kSessionExitedCleanly,
|
| + true,
|
| + false /* don't sync pref */);
|
| + prefs->RegisterBooleanPref(prefs::kSafeBrowsingEnabled,
|
| + true,
|
| + true /* sync pref */);
|
| + prefs->RegisterBooleanPref(prefs::kSafeBrowsingReportingEnabled,
|
| + false,
|
| + false /* don't sync pref */);
|
| // TODO(estade): IDS_SPELLCHECK_DICTIONARY should be an ASCII string.
|
| prefs->RegisterLocalizedStringPref(prefs::kSpellCheckDictionary,
|
| - IDS_SPELLCHECK_DICTIONARY);
|
| - prefs->RegisterBooleanPref(prefs::kEnableSpellCheck, true);
|
| - prefs->RegisterBooleanPref(prefs::kEnableAutoSpellCorrect, true);
|
| + IDS_SPELLCHECK_DICTIONARY,
|
| + false /* don't sync pref */);
|
| + prefs->RegisterBooleanPref(prefs::kEnableSpellCheck,
|
| + true,
|
| + true /* sync pref */);
|
| + prefs->RegisterBooleanPref(prefs::kEnableAutoSpellCorrect,
|
| + true,
|
| + false /* don't sync pref */);
|
| #if defined(TOOLKIT_USES_GTK)
|
| prefs->RegisterBooleanPref(prefs::kUsesSystemTheme,
|
| - GtkThemeService::DefaultUsesSystemTheme());
|
| + GtkThemeService::DefaultUsesSystemTheme(),
|
| + false /* don't sync pref */);
|
| #endif
|
| - prefs->RegisterFilePathPref(prefs::kCurrentThemePackFilename, FilePath());
|
| + prefs->RegisterFilePathPref(prefs::kCurrentThemePackFilename,
|
| + FilePath(),
|
| + false /* don't sync pref */);
|
| prefs->RegisterStringPref(prefs::kCurrentThemeID,
|
| - ThemeService::kDefaultThemeID);
|
| - prefs->RegisterDictionaryPref(prefs::kCurrentThemeImages);
|
| - prefs->RegisterDictionaryPref(prefs::kCurrentThemeColors);
|
| - prefs->RegisterDictionaryPref(prefs::kCurrentThemeTints);
|
| - prefs->RegisterDictionaryPref(prefs::kCurrentThemeDisplayProperties);
|
| - prefs->RegisterBooleanPref(prefs::kDisableExtensions, false);
|
| - prefs->RegisterStringPref(prefs::kSelectFileLastDirectory, "");
|
| + ThemeService::kDefaultThemeID,
|
| + false /* don't sync pref */);
|
| + prefs->RegisterDictionaryPref(prefs::kCurrentThemeImages,
|
| + false /* don't sync pref */);
|
| + prefs->RegisterDictionaryPref(prefs::kCurrentThemeColors,
|
| + false /* don't sync pref */);
|
| + prefs->RegisterDictionaryPref(prefs::kCurrentThemeTints,
|
| + false /* don't sync pref */);
|
| + prefs->RegisterDictionaryPref(prefs::kCurrentThemeDisplayProperties,
|
| + false /* don't sync pref */);
|
| + prefs->RegisterBooleanPref(prefs::kDisableExtensions,
|
| + false,
|
| + false /* don't sync pref */);
|
| + prefs->RegisterStringPref(prefs::kSelectFileLastDirectory,
|
| + "",
|
| + false /* don't sync 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
|
| // kApplicationLocale only in local state.
|
| // In the future we may want to maintain kApplicationLocale
|
| // in user's profile for other platforms as well.
|
| - prefs->RegisterStringPref(prefs::kApplicationLocale, "");
|
| - prefs->RegisterStringPref(prefs::kApplicationLocaleBackup, "");
|
| - prefs->RegisterStringPref(prefs::kApplicationLocaleAccepted, "");
|
| + prefs->RegisterStringPref(prefs::kApplicationLocale,
|
| + "",
|
| + true /* sync pref */);
|
| + prefs->RegisterStringPref(prefs::kApplicationLocaleBackup,
|
| + "",
|
| + false /* don't sync pref */);
|
| + prefs->RegisterStringPref(prefs::kApplicationLocaleAccepted,
|
| + "",
|
| + false /* don't sync pref */);
|
| #endif
|
| }
|
|
|
|
|