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..a439ff7bea64d991b4e824e318bd77ca65e6755b 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(level); |
Lei Zhang
2014/07/15 00:18:01
s/level/change.host, level/ ?
Evan Stade
2014/07/15 19:23:32
yes
|
} |
#if defined(ENABLE_SESSION_SERVICE) |