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

Unified Diff: content/renderer/fetchers/resource_fetcher_impl.cc

Issue 2918653004: Remove dup'ed code for RequestorOrigin and FirstPartyCookie (Closed)
Patch Set: . Created 3 years, 6 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
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/fetchers/resource_fetcher_impl.cc
diff --git a/content/renderer/fetchers/resource_fetcher_impl.cc b/content/renderer/fetchers/resource_fetcher_impl.cc
index f0f62b6ca3d50aba1e4d1b9e7db39ad27b0005d4..c83f04ca4df44fb5b3ecc3a044f4724e49f224c6 100644
--- a/content/renderer/fetchers/resource_fetcher_impl.cc
+++ b/content/renderer/fetchers/resource_fetcher_impl.cc
@@ -183,6 +183,7 @@ void ResourceFetcherImpl::Start(
request_.SetRequestContext(request_context);
request_.SetFirstPartyForCookies(frame->GetDocument().FirstPartyForCookies());
+ request_.SetRequestorOrigin(frame->GetDocument().GetSecurityOrigin());
request_.AddHTTPOriginIfNeeded(blink::WebSecurityOrigin::CreateUnique());
client_.reset(new ClientImpl(this, callback));
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698