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

Unified Diff: content/browser/loader/resource_dispatcher_host_impl.cc

Issue 2499313003: Set user_gesture bit at NavigationHandle creation time. (Closed)
Patch Set: rebase Created 4 years 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/loader/resource_dispatcher_host_impl.cc
diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
index d70afa71e4951628f7a50d32a6a40b7f70dcaad2..fad7d214783f44ff611a9918f0859c664bbd2166 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.cc
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc
@@ -2220,7 +2220,8 @@ void ResourceDispatcherHostImpl::BeginNavigationRequest(
false,
false, // is download
false, // is stream
- info.common_params.allow_download, info.begin_params.has_user_gesture,
+ info.common_params.allow_download,
+ info.common_params.gesture == NavigationGestureUser,
true, // enable_load_timing
false, // enable_upload_progress
false, // do_not_prompt_for_login
« no previous file with comments | « content/browser/loader/navigation_url_loader_unittest.cc ('k') | content/browser/loader/resource_dispatcher_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698