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 69aa9784c523e8f930aec9876cefdd901382f302..5aa3313f278c865aab9af9280ba91a1ab0569b27 100644 |
--- a/content/browser/renderer_host/render_view_host_impl.cc |
+++ b/content/browser/renderer_host/render_view_host_impl.cc |
@@ -527,6 +527,9 @@ WebPreferences RenderViewHostImpl::ComputeWebkitPrefs() { |
prefs.v8_cache_options = GetV8CacheOptions(); |
+ prefs.user_gesture_required_for_presentation = !command_line.HasSwitch( |
+ switches::kDisableGestureRequirementForPresentation); |
+ |
GetContentClient()->browser()->OverrideWebkitPrefs(this, &prefs); |
return prefs; |
} |