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

Unified Diff: android_webview/browser/aw_cookie_access_policy.cc

Issue 2655443003: Unify the "get" and "set" cookie access settings. (Closed)
Patch Set: rebase 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
« no previous file with comments | « no previous file | chrome/browser/browsing_data/cookies_tree_model_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/aw_cookie_access_policy.cc
diff --git a/android_webview/browser/aw_cookie_access_policy.cc b/android_webview/browser/aw_cookie_access_policy.cc
index f14d09f69f3d58965f1f60957e5eb4d3c8a59430..e0a78cc59ee14162f1c1fd5cc532ae4c5fbf421d 100644
--- a/android_webview/browser/aw_cookie_access_policy.cc
+++ b/android_webview/browser/aw_cookie_access_policy.cc
@@ -142,15 +142,14 @@ StaticCookiePolicy::Type AwStaticCookiePolicy::GetPolicy(const GURL& url)
bool AwStaticCookiePolicy::AllowSet(const GURL& url,
const GURL& first_party) const {
-
- return StaticCookiePolicy(GetPolicy(url)).CanSetCookie(url, first_party) ==
- net::OK;
+ return StaticCookiePolicy(GetPolicy(url))
+ .CanAccessCookies(url, first_party) == net::OK;
}
bool AwStaticCookiePolicy::AllowGet(const GURL& url,
const GURL& first_party) const {
- return StaticCookiePolicy(GetPolicy(url)).CanGetCookies(url, first_party) ==
- net::OK;
+ return StaticCookiePolicy(GetPolicy(url))
+ .CanAccessCookies(url, first_party) == net::OK;
}
} // namespace android_webview
« no previous file with comments | « no previous file | chrome/browser/browsing_data/cookies_tree_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698