Index: chrome/browser/profiles/profile_impl.cc |
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc |
index bb52a9717c8658cb0bbc184f1eb7382ea80f122f..40904e3c49b1282bd8fa2932d82522c5c03eae5d 100644 |
--- a/chrome/browser/profiles/profile_impl.cc |
+++ b/chrome/browser/profiles/profile_impl.cc |
@@ -1074,12 +1074,10 @@ void ProfileImpl::OnZoomLevelChanged( |
double level = change.zoom_level; |
DictionaryPrefUpdate update(prefs_.get(), prefs::kPerHostZoomLevels); |
base::DictionaryValue* host_zoom_dictionary = update.Get(); |
- if (content::ZoomValuesEqual(level, host_zoom_map->GetDefaultZoomLevel())) { |
+ if (content::ZoomValuesEqual(level, host_zoom_map->GetDefaultZoomLevel())) |
host_zoom_dictionary->RemoveWithoutPathExpansion(change.host, NULL); |
- } else { |
- host_zoom_dictionary->SetWithoutPathExpansion( |
- change.host, base::Value::CreateDoubleValue(level)); |
- } |
+ else |
+ host_zoom_dictionary->SetDoubleWithoutPathExpansion(change.host, level); |
} |
#if defined(ENABLE_SESSION_SERVICE) |