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

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

Issue 2323563002: Add a flag to require a user gesture to add an entry to the back/forward list. (Closed)
Patch Set: Rebase Created 4 years, 3 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 | « chrome/browser/about_flags.cc ('k') | content/public/common/common_param_traits_macros.h » ('j') | 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 99a5c54e389e41952fa0d5bddb15e545b5b3247b..6d4e908768ef7c67faf0459c529671e9dbc690ce 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -475,6 +475,9 @@ WebPreferences RenderViewHostImpl::ComputeWebkitPrefs() {
prefs.pinch_overlay_scrollbar_thickness = 10;
prefs.use_solid_color_scrollbars = ui::IsOverlayScrollbarEnabled();
+ prefs.history_entry_requires_user_gesture =
+ command_line.HasSwitch(switches::kHistoryEntryRequiresUserGesture);
+
#if defined(OS_ANDROID)
// On Android, user gestures are normally required, unless that requirement
// is disabled with a command-line switch or the equivalent field trial is
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | content/public/common/common_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698