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

Unified Diff: content/child/resource_dispatcher.cc

Issue 1411813003: Teach URLRequest about initiator checks for First-Party-Only cookies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback. Created 4 years, 11 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 bb34a466a5a791854fe4d1dceef5c165668aa7d5..30bbbe915cb81c8e2bbb404a8211cf4edb2d3e8d 100644
--- a/content/child/resource_dispatcher.cc
+++ b/content/child/resource_dispatcher.cc
@@ -788,6 +788,7 @@ scoped_ptr<ResourceHostMsg_Request> ResourceDispatcher::CreateRequest(
request->method = request_info.method;
request->url = request_info.url;
request->first_party_for_cookies = request_info.first_party_for_cookies;
+ request->request_initiator = request_info.request_initiator;
request->referrer = request_info.referrer.url;
request->referrer_policy = request_info.referrer.policy;
request->headers = request_info.headers;

Powered by Google App Engine
This is Rietveld 408576698