summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/api/extension_api.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/extensions/api/extension_api.cc')
-rw-r--r--chrome/common/extensions/api/extension_api.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/chrome/common/extensions/api/extension_api.cc b/chrome/common/extensions/api/extension_api.cc
index a609ac8..f28ab3c 100644
--- a/chrome/common/extensions/api/extension_api.cc
+++ b/chrome/common/extensions/api/extension_api.cc
@@ -224,12 +224,9 @@ ExtensionAPI::~ExtensionAPI() {
}
void ExtensionAPI::InitDefaultConfiguration() {
- RegisterDependencyProvider(
- "api", FeatureProvider::GetByName("api"));
- RegisterDependencyProvider(
- "manifest", FeatureProvider::GetByName("manifest"));
- RegisterDependencyProvider(
- "permission", FeatureProvider::GetByName("permission"));
+ const char* names[] = {"api", "manifest", "permission"};
+ for (size_t i = 0; i < arraysize(names); ++i)
+ RegisterDependencyProvider(names[i], FeatureProvider::GetByName(names[i]));
// Schemas to be loaded from resources.
CHECK(unloaded_schemas_.empty());