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

Unified Diff: net/base/static_cookie_policy.h

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: net/base/static_cookie_policy.h
diff --git a/net/base/static_cookie_policy.h b/net/base/static_cookie_policy.h
index 5adc194684bd1677b9d88650628d112492ead23c..eca5c6a45e315f32e0ebf2a4a33bea3d9c8e73ad 100644
--- a/net/base/static_cookie_policy.h
+++ b/net/base/static_cookie_policy.h
@@ -41,13 +41,9 @@ class NET_EXPORT StaticCookiePolicy {
Type type() const { return type_; }
// Consults the user's third-party cookie blocking preferences to determine
- // whether the URL's cookies can be read.
- int CanGetCookies(const GURL& url, const GURL& first_party_for_cookies) const;
-
- // Consults the user's third-party cookie blocking preferences to determine
- // whether the URL's cookies can be set.
- int CanSetCookie(const GURL& url,
- const GURL& first_party_for_cookies) const;
+ // whether the URL's cookies can be accessed.
+ int CanAccessCookies(const GURL& url,
+ const GURL& first_party_for_cookies) const;
private:
Type type_;

Powered by Google App Engine
This is Rietveld 408576698