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

Unified Diff: chrome/browser/ui/prefs/prefs_tab_helper.cc

Issue 9749001: Fix prefs migration for font settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/prefs/prefs_tab_helper.cc
===================================================================
--- chrome/browser/ui/prefs/prefs_tab_helper.cc (revision 127634)
+++ chrome/browser/ui/prefs/prefs_tab_helper.cc (working copy)
@@ -323,6 +323,7 @@
if (!pref->IsDefaultValue()) {
prefs->Set(kPrefNamesToMigrate[i].to, *pref->GetValue()->DeepCopy());
}
+ prefs->ClearPref(kPrefNamesToMigrate[i].from);
prefs->UnregisterPreference(kPrefNamesToMigrate[i].from);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698