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; |
} |