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

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

Issue 2557233002: Revert of 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/navigation_resource_throttle.cc
diff --git a/content/browser/loader/navigation_resource_throttle.cc b/content/browser/loader/navigation_resource_throttle.cc
index b4637dbaeecbcbdbe1379206483cc726c95665ba..7a725a8e85ff056e16c4b0a71e8eddf6e05c3532 100644
--- a/content/browser/loader/navigation_resource_throttle.cc
+++ b/content/browser/loader/navigation_resource_throttle.cc
@@ -96,6 +96,7 @@ void CheckWillStartRequestOnUIThread(
const scoped_refptr<content::ResourceRequestBodyImpl>&
resource_request_body,
const Referrer& sanitized_referrer,
+ bool has_user_gesture,
ui::PageTransition transition,
bool is_external_protocol,
RequestContextType request_context_type) {
@@ -106,8 +107,8 @@ void CheckWillStartRequestOnUIThread(
return;
navigation_handle->WillStartRequest(
- method, resource_request_body, sanitized_referrer, transition,
- is_external_protocol, request_context_type,
+ method, resource_request_body, sanitized_referrer, has_user_gesture,
+ transition, is_external_protocol, request_context_type,
base::Bind(&SendCheckResultToIOThread, callback));
}
@@ -212,8 +213,8 @@ void NavigationResourceThrottle::WillStartRequest(bool* defer) {
Referrer::SanitizeForRequest(
request_->url(), Referrer(GURL(request_->referrer()),
info->GetReferrerPolicy())),
- info->GetPageTransition(), is_external_protocol,
- request_context_type_));
+ info->HasUserGesture(), info->GetPageTransition(),
+ is_external_protocol, request_context_type_));
*defer = true;
}
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/browser/loader/navigation_url_loader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698