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

Unified Diff: chrome/browser/storage/durable_storage_permission_context.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: chrome/browser/storage/durable_storage_permission_context.cc
diff --git a/chrome/browser/storage/durable_storage_permission_context.cc b/chrome/browser/storage/durable_storage_permission_context.cc
index 5ea22bf0ac1d2e45cfda3fbd4580faa56c3396fc..15bc3c66508e90df27e13a182b9e1d9f016c0371 100644
--- a/chrome/browser/storage/durable_storage_permission_context.cc
+++ b/chrome/browser/storage/durable_storage_permission_context.cc
@@ -57,8 +57,8 @@ void DurableStoragePermissionContext::DecidePermission(
// Don't grant durable if we can't write cookies.
scoped_refptr<content_settings::CookieSettings> cookie_settings =
CookieSettingsFactory::GetForProfile(profile());
- if (!cookie_settings->IsSettingCookieAllowed(requesting_origin,
- requesting_origin)) {
+ if (!cookie_settings->IsCookieAccessAllowed(requesting_origin,
+ requesting_origin)) {
NotifyPermissionSet(id, requesting_origin, embedding_origin, callback,
false /* persist */, CONTENT_SETTING_DEFAULT);
return;

Powered by Google App Engine
This is Rietveld 408576698