Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(435)

Unified Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 2874833002: Don't compile code for desktop zoom or GuestViews on mobile platforms. (Closed)
Patch Set: Rebase. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index fae4a33bc682b8e4ec8f4e6e39d428134bdb4a6b..854c10c2fac3e86a50d944b7f29a8d768c3b19ef 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -37,7 +37,6 @@
#include "content/browser/gpu/compositor_util.h"
#include "content/browser/gpu/gpu_data_manager_impl.h"
#include "content/browser/gpu/gpu_process_host.h"
-#include "content/browser/host_zoom_map_impl.h"
#include "content/browser/loader/resource_dispatcher_host_impl.h"
#include "content/browser/renderer_host/input/timeout_monitor.h"
#include "content/browser/renderer_host/render_process_host_impl.h"
@@ -101,6 +100,10 @@
#include "ui/gfx/platform_font_win.h"
#endif
+#if !defined(OS_ANDROID)
+#include "content/browser/host_zoom_map_impl.h"
+#endif
+
using base::TimeDelta;
using blink::WebConsoleMessage;
using blink::WebInputEvent;
@@ -839,11 +842,13 @@ void RenderViewHostImpl::OnDocumentAvailableInMainFrame(
if (!uses_temporary_zoom_level)
return;
+#if !defined(OS_ANDROID)
HostZoomMapImpl* host_zoom_map =
static_cast<HostZoomMapImpl*>(HostZoomMap::Get(GetSiteInstance()));
host_zoom_map->SetTemporaryZoomLevel(GetProcess()->GetID(),
GetRoutingID(),
host_zoom_map->GetDefaultZoomLevel());
+#endif // !defined(OS_ANDROID)
}
void RenderViewHostImpl::OnDidContentsPreferredSizeChange(
« no previous file with comments | « content/browser/download/download_manager_impl_unittest.cc ('k') | content/browser/storage_partition_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698