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

Unified Diff: chrome/common/extensions/manifest_handlers/app_isolation_info.cc

Issue 309533007: Refactor PermissionsData pt1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Latest master Created 6 years, 6 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/common/extensions/manifest_handlers/app_isolation_info.cc
diff --git a/chrome/common/extensions/manifest_handlers/app_isolation_info.cc b/chrome/common/extensions/manifest_handlers/app_isolation_info.cc
index 74de0879d496c12d4b9220e4889d5c7f44734df6..41b07c61487f2f16876df4a79d01ea6a38bd8ef1 100644
--- a/chrome/common/extensions/manifest_handlers/app_isolation_info.cc
+++ b/chrome/common/extensions/manifest_handlers/app_isolation_info.cc
@@ -11,8 +11,8 @@
#include "base/values.h"
#include "extensions/common/error_utils.h"
#include "extensions/common/manifest_constants.h"
+#include "extensions/common/manifest_handlers/permissions_parser.h"
#include "extensions/common/permissions/api_permission_set.h"
-#include "extensions/common/permissions/permissions_data.h"
namespace extensions {
@@ -48,8 +48,8 @@ bool AppIsolationHandler::Parse(Extension* extension, base::string16* error) {
// Other apps only get it if it is requested _and_ experimental APIs are
// enabled.
if (!extension->is_app() ||
- !PermissionsData::GetInitialAPIPermissions(extension)->count(
- APIPermission::kExperimental)) {
+ !PermissionsParser::HasAPIPermission(extension,
+ APIPermission::kExperimental)) {
return true;
}
« no previous file with comments | « chrome/common/extensions/extension_unittest.cc ('k') | chrome/common/extensions/manifest_handlers/content_scripts_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698