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

Unified Diff: chrome/common/extensions/api/storage/storage_schema_manifest_handler.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/common/extensions/api/storage/storage_schema_manifest_handler.cc
diff --git a/chrome/common/extensions/api/storage/storage_schema_manifest_handler.cc b/chrome/common/extensions/api/storage/storage_schema_manifest_handler.cc
index bbb81644a2ce772c665e5262af012fd51ea7e2c7..d88ab14511bc737dec1c3ae4ec2d983b6144e67e 100644
--- a/chrome/common/extensions/api/storage/storage_schema_manifest_handler.cc
+++ b/chrome/common/extensions/api/storage/storage_schema_manifest_handler.cc
@@ -17,9 +17,9 @@
#include "extensions/common/install_warning.h"
#include "extensions/common/manifest.h"
#include "extensions/common/manifest_constants.h"
+#include "extensions/common/manifest_handlers/permissions_parser.h"
#include "extensions/common/permissions/api_permission.h"
#include "extensions/common/permissions/api_permission_set.h"
-#include "extensions/common/permissions/permissions_data.h"
#include "extensions/common/permissions/permissions_info.h"
#if defined(ENABLE_CONFIGURATION_POLICY)
@@ -73,9 +73,7 @@ bool StorageSchemaManifestHandler::Parse(Extension* extension,
// If an extension declares the "storage.managed_schema" key then it gets
// the "storage" permission implicitly.
- APIPermissionSet* permission_set =
- PermissionsData::GetInitialAPIPermissions(extension);
- permission_set->insert(APIPermission::kStorage);
+ PermissionsParser::AddAPIPermission(extension, APIPermission::kStorage);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698