Index: extensions/browser/api/storage/local_value_store_cache.cc |
diff --git a/extensions/browser/api/storage/local_value_store_cache.cc b/extensions/browser/api/storage/local_value_store_cache.cc |
index 6946f3388365de55c630612fa11392602eb9c5ac..4865b31ed0206459fe190e010be8cb170a5b8e91 100644 |
--- a/extensions/browser/api/storage/local_value_store_cache.cc |
+++ b/extensions/browser/api/storage/local_value_store_cache.cc |
@@ -18,6 +18,7 @@ |
#include "extensions/common/constants.h" |
#include "extensions/common/extension.h" |
#include "extensions/common/permissions/api_permission.h" |
+#include "extensions/common/permissions/permissions_data.h" |
using content::BrowserThread; |
@@ -62,7 +63,8 @@ void LocalValueStoreCache::RunWithValueStoreForExtension( |
// A neat way to implement unlimited storage; if the extension has the |
// unlimited storage permission, force through all calls to Set(). |
- if (extension->HasAPIPermission(APIPermission::kUnlimitedStorage)) { |
+ if (extension->permissions_data()->HasAPIPermission( |
+ APIPermission::kUnlimitedStorage)) { |
WeakUnlimitedSettingsStorage unlimited_storage(storage); |
callback.Run(&unlimited_storage); |
} else { |