Chromium Code Reviews| Index: content/renderer/render_view_impl.cc |
| diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc |
| index df3decf81cfa4d64c33f75b9fc1c8c215b09a726..287ca001373e8da26caae3a0ae4e6c8fa3ae3769 100644 |
| --- a/content/renderer/render_view_impl.cc |
| +++ b/content/renderer/render_view_impl.cc |
| @@ -1291,8 +1291,6 @@ bool RenderViewImpl::OnMessageReceived(const IPC::Message& message) { |
| IPC_MESSAGE_HANDLER(ViewMsg_SaveImageAt, OnSaveImageAt) |
| IPC_MESSAGE_HANDLER(ViewMsg_SetPageScale, OnSetPageScale) |
| IPC_MESSAGE_HANDLER(ViewMsg_Zoom, OnZoom) |
| - IPC_MESSAGE_HANDLER(ViewMsg_SetZoomLevelForLoadingURL, |
| - OnSetZoomLevelForLoadingURL) |
| IPC_MESSAGE_HANDLER(ViewMsg_SetPageEncoding, OnSetPageEncoding) |
| IPC_MESSAGE_HANDLER(ViewMsg_ResetPageEncodingToDefault, |
| OnResetPageEncodingToDefault) |
| @@ -2375,21 +2373,6 @@ void RenderViewImpl::OnZoom(PageZoom zoom) { |
| zoomLevelChanged(); |
| } |
| -void RenderViewImpl::OnSetZoomLevelForLoadingURL(const GURL& url, |
| - double zoom_level) { |
| - // TODO(wjmaclean): We should see if this restriction is really necessary, |
| - // since it isn't enforced in other parts of the page zoom system (e.g. |
| - // when a users changes the zoom of a currently displayed page). Android |
| - // has no UI for this, so in theory the following code would normally just use |
| - // the default zoom anyways. |
| -#if !defined(OS_ANDROID) |
|
jam
2016/05/17 17:20:30
hmm maybe best to keep android behavior same in th
scottmg
2016/05/17 17:36:16
Yeah, I only enabled it because it made the test w
|
| - // On Android, page zoom isn't used, and in case of WebView, text zoom is used |
| - // for legacy WebView text scaling emulation. Thus, the code that resets |
| - // the zoom level from this map will be effectively resetting text zoom level. |
| - host_zoom_levels_[url] = zoom_level; |
| -#endif |
| -} |
| - |
| void RenderViewImpl::OnSetZoomLevel( |
| PageMsg_SetZoomLevel_Command command, |
| double zoom_level) { |