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

Unified Diff: extensions/browser/api/declarative_webrequest/webrequest_condition_attribute.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: extensions/browser/api/declarative_webrequest/webrequest_condition_attribute.cc
diff --git a/extensions/browser/api/declarative_webrequest/webrequest_condition_attribute.cc b/extensions/browser/api/declarative_webrequest/webrequest_condition_attribute.cc
index 72fc2f71c61750a8c0c245d3e291c58f134ce521..4c4d183ae1003d1de7d7610d827353c9f66bb49d 100644
--- a/extensions/browser/api/declarative_webrequest/webrequest_condition_attribute.cc
+++ b/extensions/browser/api/declarative_webrequest/webrequest_condition_attribute.cc
@@ -761,9 +761,9 @@ bool WebRequestConditionAttributeThirdParty::IsFulfilled(
// Request is "1st party" if it gets cookies under 3rd party-blocking policy.
const net::StaticCookiePolicy block_third_party_policy(
net::StaticCookiePolicy::BLOCK_ALL_THIRD_PARTY_COOKIES);
- const int can_get_cookies = block_third_party_policy.CanGetCookies(
- request_data.request->url(),
- request_data.request->first_party_for_cookies());
+ const int can_get_cookies = block_third_party_policy.CanAccessCookies(
+ request_data.request->url(),
+ request_data.request->first_party_for_cookies());
const bool is_first_party = (can_get_cookies == net::OK);
return match_third_party_ ? !is_first_party : is_first_party;

Powered by Google App Engine
This is Rietveld 408576698