diff options
author | yoz@chromium.org <yoz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-24 03:14:39 +0000 |
---|---|---|
committer | yoz@chromium.org <yoz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-24 03:14:39 +0000 |
commit | cce6098f7f1bf24fecf648e3cdb6c1f23db42ef8 (patch) | |
tree | f414f043dee276f6a4e153251ccff4369a2d4ccb /extensions/common/extension_api.cc | |
parent | 8204ede6262a8d7aa0c76f399c6c435babd0855b (diff) | |
download | chromium_src-cce6098f7f1bf24fecf648e3cdb6c1f23db42ef8.zip chromium_src-cce6098f7f1bf24fecf648e3cdb6c1f23db42ef8.tar.gz chromium_src-cce6098f7f1bf24fecf648e3cdb6c1f23db42ef8.tar.bz2 |
Move extension API schema registration to ExtensionsClient.
BUG=368334
Review URL: https://codereview.chromium.org/296133011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272696 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions/common/extension_api.cc')
-rw-r--r-- | extensions/common/extension_api.cc | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/extensions/common/extension_api.cc b/extensions/common/extension_api.cc index 4d6b6ec..9e284f2 100644 --- a/extensions/common/extension_api.cc +++ b/extensions/common/extension_api.cc @@ -22,7 +22,6 @@ #include "extensions/common/features/feature_provider.h" #include "extensions/common/permissions/permission_set.h" #include "extensions/common/permissions/permissions_data.h" -#include "grit/extensions_api_resources.h" #include "ui/base/resource/resource_bundle.h" #include "url/gurl.h" @@ -227,34 +226,7 @@ void ExtensionAPI::InitDefaultConfiguration() { 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()); - RegisterSchemaResource("accessibilityPrivate", - IDR_EXTENSION_API_JSON_ACCESSIBILITYPRIVATE); - RegisterSchemaResource("app", IDR_EXTENSION_API_JSON_APP); - RegisterSchemaResource("browserAction", IDR_EXTENSION_API_JSON_BROWSERACTION); - RegisterSchemaResource("commands", IDR_EXTENSION_API_JSON_COMMANDS); - RegisterSchemaResource("declarativeContent", - IDR_EXTENSION_API_JSON_DECLARATIVE_CONTENT); - RegisterSchemaResource("declarativeWebRequest", - IDR_EXTENSION_API_JSON_DECLARATIVE_WEBREQUEST); - RegisterSchemaResource("fileBrowserHandler", - IDR_EXTENSION_API_JSON_FILEBROWSERHANDLER); - RegisterSchemaResource("inputMethodPrivate", - IDR_EXTENSION_API_JSON_INPUTMETHODPRIVATE); - RegisterSchemaResource("pageAction", IDR_EXTENSION_API_JSON_PAGEACTION); - RegisterSchemaResource("pageActions", IDR_EXTENSION_API_JSON_PAGEACTIONS); - RegisterSchemaResource("privacy", IDR_EXTENSION_API_JSON_PRIVACY); - RegisterSchemaResource("processes", IDR_EXTENSION_API_JSON_PROCESSES); - RegisterSchemaResource("proxy", IDR_EXTENSION_API_JSON_PROXY); - RegisterSchemaResource("scriptBadge", IDR_EXTENSION_API_JSON_SCRIPTBADGE); - RegisterSchemaResource("ttsEngine", IDR_EXTENSION_API_JSON_TTSENGINE); - RegisterSchemaResource("tts", IDR_EXTENSION_API_JSON_TTS); - RegisterSchemaResource("types", IDR_EXTENSION_API_JSON_TYPES); - RegisterSchemaResource("types.private", IDR_EXTENSION_API_JSON_TYPES_PRIVATE); - RegisterSchemaResource("webstore", IDR_EXTENSION_API_JSON_WEBSTORE); - RegisterSchemaResource("webViewRequest", - IDR_EXTENSION_API_JSON_WEBVIEW_REQUEST); + ExtensionsClient::Get()->RegisterAPISchemaResources(this); default_configuration_initialized_ = true; } |