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

Unified Diff: chrome/browser/renderer_host/resource_message_filter.cc

Issue 112067: Rename policy_url to first_party_for_cookies in one more place.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/resource_message_filter.cc
===================================================================
--- chrome/browser/renderer_host/resource_message_filter.cc (revision 17112)
+++ chrome/browser/renderer_host/resource_message_filter.cc (working copy)
@@ -385,20 +385,20 @@
}
void ResourceMessageFilter::OnSetCookie(const GURL& url,
- const GURL& policy_url,
+ const GURL& first_party_for_cookies,
const std::string& cookie) {
URLRequestContext* context = url.SchemeIs(chrome::kExtensionScheme) ?
extensions_request_context_.get() : request_context_.get();
- if (context->cookie_policy()->CanSetCookie(url, policy_url))
+ if (context->cookie_policy()->CanSetCookie(url, first_party_for_cookies))
context->cookie_store()->SetCookie(url, cookie);
}
void ResourceMessageFilter::OnGetCookies(const GURL& url,
- const GURL& policy_url,
+ const GURL& first_party_for_cookies,
std::string* cookies) {
URLRequestContext* context = url.SchemeIs(chrome::kExtensionScheme) ?
extensions_request_context_.get() : request_context_.get();
- if (context->cookie_policy()->CanGetCookies(url, policy_url))
+ if (context->cookie_policy()->CanGetCookies(url, first_party_for_cookies))
*cookies = context->cookie_store()->GetCookies(url);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698