diff options
author | hanxi <hanxi@chromium.org> | 2014-09-30 06:20:08 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-30 13:20:20 +0000 |
commit | 4499156f5a5784eee9e0dc021f13b4ea0fd7d0d2 (patch) | |
tree | ffa5d2f059101da3fb18b858eff479da748eff96 /extensions/common/extension_api.cc | |
parent | 8ed264424db75b12441d3cfd5755d5210e0533bd (diff) | |
download | chromium_src-4499156f5a5784eee9e0dc021f13b4ea0fd7d0d2.zip chromium_src-4499156f5a5784eee9e0dc021f13b4ea0fd7d0d2.tar.gz chromium_src-4499156f5a5784eee9e0dc021f13b4ea0fd7d0d2.tar.bz2 |
Several things are done in this CL:
- Update _api_features.json and _permissions.json to allow the following features in extensions:
- declarativeWebrequest,
- events
- webRequest
- webViewRequest
- Move web_view_request_custom_bindings.js and web_view_request.json to extensions.
- Remove ExtensionsAPIClient::GetRuleRegistry() since RuleRegisteryService has been moved to extension.
- Clean up extensions/extensions.gyp.
TBR=sky@chromium.org
BUG=352293
Review URL: https://codereview.chromium.org/596003002
Cr-Commit-Position: refs/heads/master@{#297413}
Diffstat (limited to 'extensions/common/extension_api.cc')
-rw-r--r-- | extensions/common/extension_api.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/extensions/common/extension_api.cc b/extensions/common/extension_api.cc index d10084c..8267695 100644 --- a/extensions/common/extension_api.cc +++ b/extensions/common/extension_api.cc @@ -23,6 +23,7 @@ #include "extensions/common/features/simple_feature.h" #include "extensions/common/permissions/permission_set.h" #include "extensions/common/permissions/permissions_data.h" +#include "extensions/grit/extensions_resources.h" #include "ui/base/resource/resource_bundle.h" #include "url/gurl.h" @@ -243,6 +244,11 @@ void ExtensionAPI::InitDefaultConfiguration() { ExtensionsClient::Get()->RegisterAPISchemaResources(this); + RegisterSchemaResource("declarativeWebRequest", + IDR_EXTENSION_API_JSON_DECLARATIVE_WEBREQUEST); + RegisterSchemaResource("webViewRequest", + IDR_EXTENSION_API_JSON_WEB_VIEW_REQUEST); + default_configuration_initialized_ = true; } |