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

Unified Diff: content/renderer/render_view_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 | « content/public/common/web_preferences.cc ('k') | third_party/WebKit/Source/core/frame/Settings.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 9194f8babe01e4fe34f2969f3880776c7c00f0d7..a988516caa7603a4bd53ea7b66014dc1634cbb73 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -977,6 +977,8 @@ void RenderView::ApplyWebPreferences(const WebPreferences& prefs,
settings->setOfflineWebApplicationCacheEnabled(
prefs.application_cache_enabled);
settings->setCaretBrowsingEnabled(prefs.caret_browsing_enabled);
+ settings->setHistoryEntryRequiresUserGesture(
+ prefs.history_entry_requires_user_gesture);
settings->setHyperlinkAuditingEnabled(prefs.hyperlink_auditing_enabled);
settings->setCookieEnabled(prefs.cookie_enabled);
settings->setNavigateOnDragDrop(prefs.navigate_on_drag_drop);
« no previous file with comments | « content/public/common/web_preferences.cc ('k') | third_party/WebKit/Source/core/frame/Settings.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698