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

Unified Diff: content/child/resource_dispatcher.cc

Issue 2254693002: Delay generation of User-Agent header to URLRequestHttpJob and accept custom User-Agent from XHR/Fe… Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed Android test Created 4 years, 4 months 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/child/resource_dispatcher.cc
diff --git a/content/child/resource_dispatcher.cc b/content/child/resource_dispatcher.cc
index ba2e76be7369227031660b7d64e8c7b19dca6659..0371e93042d6af3765c3531a2707b665dc695a35 100644
--- a/content/child/resource_dispatcher.cc
+++ b/content/child/resource_dispatcher.cc
@@ -812,6 +812,7 @@ std::unique_ptr<ResourceRequest> ResourceDispatcher::CreateRequest(
request->referrer = request_info.referrer.url;
request->referrer_policy = request_info.referrer.policy;
request->headers = request_info.headers;
+ request->default_user_agent = request_info.default_user_agent;
request->load_flags = request_info.load_flags;
request->origin_pid = request_info.requestor_pid;
request->resource_type = request_info.request_type;

Powered by Google App Engine
This is Rietveld 408576698