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

Unified Diff: content/browser/frame_host/navigator_impl.cc

Issue 2378393002: Pass the user_gesture context in the IPC message FrameMsg_CommitNavigation to the renderer. (Closed)
Patch Set: 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
Index: content/browser/frame_host/navigator_impl.cc
diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc
index a25c56910565a66d44516a2022fb1c61b469ef7d..7f6bf85ab9d75e291bd071e30b70dd0bbe63deeb 100644
--- a/content/browser/frame_host/navigator_impl.cc
+++ b/content/browser/frame_host/navigator_impl.cc
@@ -1040,11 +1040,13 @@ void NavigatorImpl::RequestNavigation(FrameTreeNode* frame_tree_node,
RenderFrameHostImpl* render_frame_host =
frame_tree_node->render_manager()->GetFrameHostForNavigation(
*navigation_request);
- render_frame_host->CommitNavigation(nullptr, // response
- nullptr, // body
- navigation_request->common_params(),
- navigation_request->request_params(),
- navigation_request->is_view_source());
+ render_frame_host->CommitNavigation(
+ nullptr, // response
+ nullptr, // body
+ navigation_request->common_params(),
+ navigation_request->request_params(),
+ navigation_request->is_view_source(),
+ navigation_request->begin_params().has_user_gesture);
return;
}

Powered by Google App Engine
This is Rietveld 408576698