| Index: chrome/browser/profiles/profile_impl.cc
|
| diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
|
| index 2b1020dc73f7322b079fb6a355b3909dc8ca2441..df78ae67b7414522b76b7e5752eaf582470fa07a 100644
|
| --- a/chrome/browser/profiles/profile_impl.cc
|
| +++ b/chrome/browser/profiles/profile_impl.cc
|
| @@ -577,13 +577,12 @@ void ProfileImpl::InitHostZoomMap() {
|
| prefs_->GetDictionary(prefs::kPerHostZoomLevels);
|
| // Careful: The returned value could be NULL if the pref has never been set.
|
| if (host_zoom_dictionary != NULL) {
|
| - for (DictionaryValue::key_iterator i(host_zoom_dictionary->begin_keys());
|
| - i != host_zoom_dictionary->end_keys(); ++i) {
|
| - const std::string& host(*i);
|
| + for (DictionaryValue::Iterator i(*host_zoom_dictionary); !i.IsAtEnd();
|
| + i.Advance()) {
|
| + const std::string& host(i.key());
|
| double zoom_level = 0;
|
|
|
| - bool success = host_zoom_dictionary->GetDoubleWithoutPathExpansion(
|
| - host, &zoom_level);
|
| + bool success = i.value().GetAsDouble(&zoom_level);
|
| DCHECK(success);
|
| host_zoom_map->SetZoomLevel(host, zoom_level);
|
| }
|
|
|