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

Unified Diff: chrome/common/resource_dispatcher.cc

Issue 385024: Propagate the "first party for cookies" from WebKit through the resource... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Upload before checkin Created 11 years, 1 month 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: chrome/common/resource_dispatcher.cc
===================================================================
--- chrome/common/resource_dispatcher.cc (revision 31948)
+++ chrome/common/resource_dispatcher.cc (working copy)
@@ -421,9 +421,12 @@
RESOURCE_LOG("Dispatching redirect for " <<
request_info.peer->GetURLForDebugging().possibly_invalid_spec());
- if (request_info.peer->OnReceivedRedirect(new_url, info)) {
+ GURL new_first_party_for_cookies;
+ if (request_info.peer->OnReceivedRedirect(new_url, info,
+ &new_first_party_for_cookies)) {
message_sender()->Send(
- new ViewHostMsg_FollowRedirect(message.routing_id(), request_id));
+ new ViewHostMsg_FollowRedirect(message.routing_id(), request_id,
+ new_first_party_for_cookies));
} else {
CancelPendingRequest(message.routing_id(), request_id);
}

Powered by Google App Engine
This is Rietveld 408576698