Chromium Code Reviews| Index: content/browser/host_zoom_map_impl.cc |
| diff --git a/content/browser/host_zoom_map_impl.cc b/content/browser/host_zoom_map_impl.cc |
| index a14b163c4ceb014fe06e94943b387992a62ca59c..ea98ac68fa7374646d45bce44ed883820a8cc3e4 100644 |
| --- a/content/browser/host_zoom_map_impl.cc |
| +++ b/content/browser/host_zoom_map_impl.cc |
| @@ -241,9 +241,9 @@ void HostZoomMapImpl::SetZoomLevelForWebContents( |
| SetTemporaryZoomLevel(render_process_id, render_view_id, level); |
| } else { |
| - SetZoomLevelForHost( |
| - net::GetHostOrSpecFromURL(web_contents_impl.GetLastCommittedURL()), |
| - level); |
| + GURL url = |
| + web_contents_impl.GetController().GetLastCommittedEntry()->GetURL(); |
|
Peter Kasting
2014/06/02 20:38:53
(1) Are we guaranteed to have a committed entry by
|
| + SetZoomLevelForHost(net::GetHostOrSpecFromURL(url), level); |
| } |
| } |