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

Unified Diff: content/browser/loader/navigation_resource_throttle.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/navigation_resource_throttle.cc
diff --git a/content/browser/loader/navigation_resource_throttle.cc b/content/browser/loader/navigation_resource_throttle.cc
index e8f9e6ed25b47782c18c8d174c31ec3cc3f92e7e..0d075cc487070580e5018e11f27a6eac66031ec6 100644
--- a/content/browser/loader/navigation_resource_throttle.cc
+++ b/content/browser/loader/navigation_resource_throttle.cc
@@ -97,7 +97,6 @@ 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) {
@@ -108,8 +107,8 @@ void CheckWillStartRequestOnUIThread(
return;
navigation_handle->WillStartRequest(
- method, resource_request_body, sanitized_referrer, has_user_gesture,
- transition, is_external_protocol, request_context_type,
+ method, resource_request_body, sanitized_referrer, transition,
+ is_external_protocol, request_context_type,
base::Bind(&SendCheckResultToIOThread, callback));
}
@@ -214,8 +213,8 @@ void NavigationResourceThrottle::WillStartRequest(bool* defer) {
Referrer::SanitizeForRequest(
request_->url(), Referrer(GURL(request_->referrer()),
info->GetReferrerPolicy())),
- info->HasUserGesture(), info->GetPageTransition(),
- is_external_protocol, request_context_type_));
+ 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