diff options
author | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-18 02:27:34 +0000 |
---|---|---|
committer | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-18 02:27:34 +0000 |
commit | 041b0bbba0efec8bd026aee1165e4be697cbf8ce (patch) | |
tree | 8c9ee6806d964c45252a56f911f3c43491a38fc4 /chrome/plugin/chrome_plugin_host.cc | |
parent | 4eb0ece6c4b380e6af418ab15beda8c13ed08817 (diff) | |
download | chromium_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/plugin/chrome_plugin_host.cc')
-rw-r--r-- | chrome/plugin/chrome_plugin_host.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/plugin/chrome_plugin_host.cc b/chrome/plugin/chrome_plugin_host.cc index 23f0e5b..4e3a8cb 100644 --- a/chrome/plugin/chrome_plugin_host.cc +++ b/chrome/plugin/chrome_plugin_host.cc @@ -69,10 +69,12 @@ class PluginRequestHandlerProxy virtual bool OnReceivedRedirect( const GURL& new_url, const ResourceLoaderBridge::ResponseInfo& info, + bool* has_new_first_party_for_cookies, GURL* new_first_party_for_cookies) { plugin_->functions().response_funcs->received_redirect( cprequest_.get(), new_url.spec().c_str()); - *new_first_party_for_cookies = GURL(); + // TODO(wtc): should we return a new first party for cookies URL? + *has_new_first_party_for_cookies = false; return true; } |