diff options
author | kalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-07 20:44:41 +0000 |
---|---|---|
committer | kalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-07 20:44:41 +0000 |
commit | 276f05aa5fc98df61d947ccaf7480bca9c021730 (patch) | |
tree | 39f71a9d3ea8be562d942b702172e5e6b6c56433 /chrome/common/extensions/api/extension_api.cc | |
parent | c6176da0f310db393db5f02269f2e83cbe17aacf (diff) | |
download | chromium_src-276f05aa5fc98df61d947ccaf7480bca9c021730.zip chromium_src-276f05aa5fc98df61d947ccaf7480bca9c021730.tar.gz chromium_src-276f05aa5fc98df61d947ccaf7480bca9c021730.tar.bz2 |
Add FeatureProvider::GetAPIFeatures, GetManifestFeatures, and
GetPermissionFeatures as shortcuts for FeatureProvider::GetByName.
R=yoz@chromium.org
Review URL: https://codereview.chromium.org/25943002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227338 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/api/extension_api.cc')
-rw-r--r-- | chrome/common/extensions/api/extension_api.cc | 9 |
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()); |