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

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

Issue 257903002: Fix for pinch virtual viewport flag wasn't fully enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renamed to AppendCompositorCommandLineFlags Created 6 years, 8 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
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2d11d5fb2ef16f545135bef6ff2465ca10cc8342..cf180d65d2fad3350c878c944f2bf48f8852956e 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -437,13 +437,7 @@ WebPreferences RenderViewHostImpl::GetWebkitPrefs(const GURL& url) {
prefs.region_based_columns_enabled =
command_line.HasSwitch(switches::kEnableRegionBasedColumns);
-#if defined(OS_CHROMEOS)
- bool enable_pinch_virtual_viewport = true;
-#else
- bool enable_pinch_virtual_viewport =
- command_line.HasSwitch(cc::switches::kEnablePinchVirtualViewport);
-#endif
- if (enable_pinch_virtual_viewport) {
+ if (IsPinchVirtualViewportEnabled()) {
prefs.pinch_virtual_viewport_enabled = true;
prefs.pinch_overlay_scrollbar_thickness = 10;
}
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698