| Index: chrome/browser/protector/protected_prefs_watcher.cc
|
| diff --git a/chrome/browser/protector/protected_prefs_watcher.cc b/chrome/browser/protector/protected_prefs_watcher.cc
|
| index 347978f5b217a96758159a30e032122350f0c8d2..4acbc8373bffbf405769c9375640cf09b6b50688 100644
|
| --- a/chrome/browser/protector/protected_prefs_watcher.cc
|
| +++ b/chrome/browser/protector/protected_prefs_watcher.cc
|
| @@ -86,7 +86,7 @@ void ProtectedPrefsWatcher::RegisterUserPrefs(PrefService* prefs) {
|
| prefs->RegisterStringPref(kBackupHomePage, "",
|
| PrefService::UNSYNCABLE_PREF);
|
| prefs->RegisterBooleanPref(kBackupHomePageIsNewTabPage, false,
|
| - PrefService::UNSYNCABLE_PREF);
|
| + PrefService::UNSYNCABLE_PREF);
|
| prefs->RegisterBooleanPref(kBackupShowHomeButton, false,
|
| PrefService::UNSYNCABLE_PREF);
|
| prefs->RegisterIntegerPref(kBackupRestoreOnStartup, 0,
|
| @@ -131,6 +131,14 @@ const base::Value* ProtectedPrefsWatcher::GetBackupForPref(
|
| return backup_pref->GetValue();
|
| }
|
|
|
| +void ProtectedPrefsWatcher::ForceUpdateBackup() {
|
| + UMA_HISTOGRAM_ENUMERATION(
|
| + kProtectorHistogramPrefs,
|
| + kProtectorErrorForcedUpdate,
|
| + kProtectorErrorCount);
|
| + InitBackup();
|
| +}
|
| +
|
| void ProtectedPrefsWatcher::Observe(
|
| int type,
|
| const content::NotificationSource& source,
|
|
|