| Index: chrome/browser/prefs/browser_prefs.cc
|
| diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
|
| index 83fa77c68e8c37ece78b0cbf50c85681b5ad2b92..153d286a4afb5f0ef50c7e0bad35879db7801e4b 100644
|
| --- a/chrome/browser/prefs/browser_prefs.cc
|
| +++ b/chrome/browser/prefs/browser_prefs.cc
|
| @@ -305,6 +305,16 @@ void RegisterUserPrefs(PrefService* user_prefs) {
|
| #endif
|
| }
|
|
|
| +void MigrateUserPrefs(Profile* profile) {
|
| + // Cleanup old prefs.
|
| + static const char kBackupPref[] = "backup";
|
| + PrefService* prefs = profile->GetPrefs();
|
| + prefs->RegisterDictionaryPref(kBackupPref, new DictionaryValue(),
|
| + PrefService::UNSYNCABLE_PREF);
|
| + prefs->ClearPref(kBackupPref);
|
| + prefs->UnregisterPreference(kBackupPref);
|
| +}
|
| +
|
| void MigrateBrowserPrefs(Profile* profile, PrefService* local_state) {
|
| // Copy pref values which have been migrated to user_prefs from local_state,
|
| // or remove them from local_state outright, if copying is not required.
|
|
|