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

Unified Diff: content/shell/browser/shell_network_delegate.cc

Issue 2655443003: Unify the "get" and "set" cookie access settings. (Closed)
Patch Set: fix android Created 3 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/shell/browser/shell_network_delegate.cc
diff --git a/content/shell/browser/shell_network_delegate.cc b/content/shell/browser/shell_network_delegate.cc
index ff832d7ae02e6586cce3f96c8a0eb677191573a4..976a236d73ac9ad8ea7d0a8fabea5267abd6837d 100644
--- a/content/shell/browser/shell_network_delegate.cc
+++ b/content/shell/browser/shell_network_delegate.cc
@@ -86,8 +86,8 @@ bool ShellNetworkDelegate::OnCanGetCookies(const net::URLRequest& request,
net::StaticCookiePolicy::BLOCK_ALL_THIRD_PARTY_COOKIES :
net::StaticCookiePolicy::ALLOW_ALL_COOKIES;
net::StaticCookiePolicy policy(policy_type);
- int rv = policy.CanGetCookies(
- request.url(), request.first_party_for_cookies());
+ int rv =
+ policy.CanAccessCookies(request.url(), request.first_party_for_cookies());
return rv == net::OK;
}
@@ -98,8 +98,8 @@ bool ShellNetworkDelegate::OnCanSetCookie(const net::URLRequest& request,
net::StaticCookiePolicy::BLOCK_ALL_THIRD_PARTY_COOKIES :
net::StaticCookiePolicy::ALLOW_ALL_COOKIES;
net::StaticCookiePolicy policy(policy_type);
- int rv = policy.CanSetCookie(
- request.url(), request.first_party_for_cookies());
+ int rv =
+ policy.CanAccessCookies(request.url(), request.first_party_for_cookies());
return rv == net::OK;
}

Powered by Google App Engine
This is Rietveld 408576698