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

Unified Diff: content/public/browser/navigation_handle.cc

Issue 2499313003: Set user_gesture bit at NavigationHandle creation time. (Closed)
Patch Set: comments Created 4 years, 1 month 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/public/browser/navigation_handle.cc
diff --git a/content/public/browser/navigation_handle.cc b/content/public/browser/navigation_handle.cc
index 56041594fe20c80391b10ed8d67a63282d6f71be..1cb7a1f7abec91f06786fbff3e58a9d224545bee 100644
--- a/content/public/browser/navigation_handle.cc
+++ b/content/public/browser/navigation_handle.cc
@@ -26,7 +26,8 @@ NavigationHandle::CreateNavigationHandleForTesting(
const GURL& url,
RenderFrameHost* render_frame_host,
bool committed,
- net::Error error) {
+ net::Error error,
+ bool has_user_gesture) {
std::unique_ptr<NavigationHandleImpl> handle_impl =
NavigationHandleImpl::Create(
url, static_cast<RenderFrameHostImpl*>(render_frame_host)
@@ -34,7 +35,7 @@ NavigationHandle::CreateNavigationHandleForTesting(
true, // is_renderer_initiated
false, // is_same_page
false, // is_srcdoc
- base::TimeTicks::Now(), 0,
+ base::TimeTicks::Now(), 0, has_user_gesture,
false); // started_from_context_menu
handle_impl->set_render_frame_host(
static_cast<RenderFrameHostImpl*>(render_frame_host));

Powered by Google App Engine
This is Rietveld 408576698