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

Unified Diff: chrome/browser/prefs/browser_prefs.cc

Issue 665283002: Fix crash in ChromeZoomLevelPrefs::ExtractPerHostZoomLevels(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wjmResetZoomLevel
Patch Set: Created 6 years, 2 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
Index: chrome/browser/prefs/browser_prefs.cc
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index d7da2fa4b9d3afa00009d9183a4a4d04e553bfd5..69c43966bce37f7c4e8f7f36f8395530217e5643 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -684,7 +684,8 @@ void MigrateProfileZoomLevelPrefs(Profile* profile) {
migrated |= !host_zoom_dictionary->empty();
UMA_HISTOGRAM_BOOLEAN("Settings.ZoomLevelPreferencesMigrated", migrated);
- zoom_level_prefs->ExtractPerHostZoomLevels(host_zoom_dictionary);
+ zoom_level_prefs->ExtractPerHostZoomLevels(
+ host_zoom_dictionary, prefs::kPerHostZoomLevelsDeprecated);
// We're done migrating the profile per-host zoom level values, so we clear
// them all.
« no previous file with comments | « no previous file | chrome/browser/ui/zoom/chrome_zoom_level_prefs.h » ('j') | chrome/browser/ui/zoom/chrome_zoom_level_prefs.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698