summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host/resource_dispatcher_host.cc
diff options
context:
space:
mode:
authorwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-18 02:27:34 +0000
committerwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-18 02:27:34 +0000
commit041b0bbba0efec8bd026aee1165e4be697cbf8ce (patch)
tree8c9ee6806d964c45252a56f911f3c43491a38fc4 /chrome/browser/renderer_host/resource_dispatcher_host.cc
parent4eb0ece6c4b380e6af418ab15beda8c13ed08817 (diff)
downloadchromium_src-041b0bbba0efec8bd026aee1165e4be697cbf8ce.zip
chromium_src-041b0bbba0efec8bd026aee1165e4be697cbf8ce.tar.gz
chromium_src-041b0bbba0efec8bd026aee1165e4be697cbf8ce.tar.bz2
Use an explicit boolean has_new_first_party_for_cookies instead
of an empty, invalid URL to indicate whether the first party for cookies URL needs changing when following a redirect. R=eroman BUG=25133 TEST=none Review URL: http://codereview.chromium.org/405011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32260 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/resource_dispatcher_host.cc')
-rw-r--r--chrome/browser/renderer_host/resource_dispatcher_host.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/renderer_host/resource_dispatcher_host.cc b/chrome/browser/renderer_host/resource_dispatcher_host.cc
index 7c192ec..3432eb1 100644
--- a/chrome/browser/renderer_host/resource_dispatcher_host.cc
+++ b/chrome/browser/renderer_host/resource_dispatcher_host.cc
@@ -658,8 +658,10 @@ void ResourceDispatcherHost::OnCancelRequest(int request_id) {
void ResourceDispatcherHost::OnFollowRedirect(
int request_id,
+ bool has_new_first_party_for_cookies,
const GURL& new_first_party_for_cookies) {
FollowDeferredRedirect(receiver_->id(), request_id,
+ has_new_first_party_for_cookies,
new_first_party_for_cookies);
}
@@ -834,6 +836,7 @@ void ResourceDispatcherHost::CancelRequest(int child_id,
void ResourceDispatcherHost::FollowDeferredRedirect(
int child_id,
int request_id,
+ bool has_new_first_party_for_cookies,
const GURL& new_first_party_for_cookies) {
PendingRequestList::iterator i = pending_requests_.find(
GlobalRequestID(child_id, request_id));
@@ -842,7 +845,7 @@ void ResourceDispatcherHost::FollowDeferredRedirect(
return;
}
- if (!new_first_party_for_cookies.is_empty())
+ if (has_new_first_party_for_cookies)
i->second->set_first_party_for_cookies(new_first_party_for_cookies);
i->second->FollowDeferredRedirect();
}