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

Unified Diff: extensions/shell/common/shell_extensions_client.cc

Issue 596003002: Allow declarative webrequest and webrequest in extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up RuleRegistry in ExtensionsApiClient. Created 6 years, 3 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: extensions/shell/common/shell_extensions_client.cc
diff --git a/extensions/shell/common/shell_extensions_client.cc b/extensions/shell/common/shell_extensions_client.cc
index 039841320dd8215f6899af07bdbd9d75effda48b..503dae27d2675780bd0f44536f1bb3b195f98643 100644
--- a/extensions/shell/common/shell_extensions_client.cc
+++ b/extensions/shell/common/shell_extensions_client.cc
@@ -8,6 +8,7 @@
#include "base/logging.h"
#include "extensions/common/api/generated_schemas.h"
#include "extensions/common/common_manifest_handlers.h"
+#include "extensions/common/extension_api.h"
#include "extensions/common/extension_urls.h"
#include "extensions/common/features/api_feature.h"
#include "extensions/common/features/base_feature_provider.h"
@@ -181,6 +182,10 @@ base::StringPiece ShellExtensionsClient::GetAPISchema(
void ShellExtensionsClient::RegisterAPISchemaResources(
ExtensionAPI* api) const {
+ api->RegisterSchemaResource("declarativeWebRequest",
Ken Rockot(use gerrit already) 2014/09/29 17:22:53 You could also remove these from both ShellExtensi
Xi Han 2014/09/29 18:16:21 Great suggestion! I was considering how to remove
+ IDR_EXTENSION_API_JSON_DECLARATIVE_WEBREQUEST);
+ api->RegisterSchemaResource("webViewRequest",
+ IDR_EXTENSION_API_JSON_WEB_VIEW_REQUEST);
}
bool ShellExtensionsClient::ShouldSuppressFatalErrors() const {

Powered by Google App Engine
This is Rietveld 408576698