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

Unified Diff: content/common/net/url_fetcher.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/common/net/url_fetcher.cc
diff --git a/content/common/net/url_fetcher.cc b/content/common/net/url_fetcher.cc
index 0433c61160f188545811d536e23e66714f7f80bd..90a664c69313ee37fe0ed78c886365a28845c2a8 100644
--- a/content/common/net/url_fetcher.cc
+++ b/content/common/net/url_fetcher.cc
@@ -21,10 +21,10 @@ base::SupportsUserData::Data* CreateURLRequestUserData(
} // namespace
void AssociateURLFetcherWithRenderFrame(net::URLFetcher* url_fetcher,
- const GURL& first_party_for_cookies,
+ const GURL& initiator,
int render_process_id,
int render_frame_id) {
- url_fetcher->SetFirstPartyForCookies(first_party_for_cookies);
+ url_fetcher->SetInitiatorURL(initiator);
url_fetcher->SetURLRequestUserData(
URLRequestUserData::kUserDataKey,
base::Bind(&CreateURLRequestUserData,

Powered by Google App Engine
This is Rietveld 408576698