summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/api/cookies/cookies_helpers.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/api/cookies/cookies_helpers.cc')
-rw-r--r--chrome/browser/extensions/api/cookies/cookies_helpers.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/extensions/api/cookies/cookies_helpers.cc b/chrome/browser/extensions/api/cookies/cookies_helpers.cc
index 71e5818..f22fc7d 100644
--- a/chrome/browser/extensions/api/cookies/cookies_helpers.cc
+++ b/chrome/browser/extensions/api/cookies/cookies_helpers.cc
@@ -136,8 +136,7 @@ void AppendMatchingCookiesToVector(const net::CookieList& all_cookies,
// Ignore any cookie whose domain doesn't match the extension's
// host permissions.
GURL cookie_domain_url = GetURLFromCanonicalCookie(*it);
- if (!PermissionsData::ForExtension(extension)
- ->HasHostPermission(cookie_domain_url))
+ if (!extension->permissions_data()->HasHostPermission(cookie_domain_url))
continue;
// Filter the cookie using the match filter.
cookies_helpers::MatchFilter filter(details);