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

Unified Diff: chrome/browser/extensions/extension_tab_util.cc

Issue 309533007: Refactor PermissionsData pt1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/extensions/extension_tab_util.cc
diff --git a/chrome/browser/extensions/extension_tab_util.cc b/chrome/browser/extensions/extension_tab_util.cc
index 39b5f35a1d487e796d81c1a86a38a751e0823040..b0177e15f4c91af8ae3cfa5faa9342eea253e8c8 100644
--- a/chrome/browser/extensions/extension_tab_util.cc
+++ b/chrome/browser/extensions/extension_tab_util.cc
@@ -391,8 +391,8 @@ void ExtensionTabUtil::ScrubTabValueForExtension(
base::DictionaryValue* tab_info) {
bool has_permission =
extension &&
- PermissionsData::HasAPIPermissionForTab(
- extension, GetTabId(contents), APIPermission::kTab);
+ PermissionsData::ForExtension(extension)
+ ->HasAPIPermissionForTab(GetTabId(contents), APIPermission::kTab);
if (!has_permission) {
tab_info->Remove(keys::kUrlKey, NULL);

Powered by Google App Engine
This is Rietveld 408576698