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

Unified Diff: extensions/renderer/native_extension_bindings_system.cc

Issue 2853023002: [Extensions Bindings] Add native declarativeContent verification (Closed)
Patch Set: lazyboy's Created 3 years, 8 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
« no previous file with comments | « extensions/renderer/declarative_content_hooks_delegate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/native_extension_bindings_system.cc
diff --git a/extensions/renderer/native_extension_bindings_system.cc b/extensions/renderer/native_extension_bindings_system.cc
index db0f0542a8347e6750679df68b88dae33f04cc3a..cd6ec5179ca4f6353f450a85bbba92a20b6aaeaa 100644
--- a/extensions/renderer/native_extension_bindings_system.cc
+++ b/extensions/renderer/native_extension_bindings_system.cc
@@ -19,6 +19,7 @@
#include "extensions/renderer/chrome_setting.h"
#include "extensions/renderer/console.h"
#include "extensions/renderer/content_setting.h"
+#include "extensions/renderer/declarative_content_hooks_delegate.h"
#include "extensions/renderer/module_system.h"
#include "extensions/renderer/script_context.h"
#include "extensions/renderer/script_context_set.h"
@@ -356,6 +357,8 @@ NativeExtensionBindingsSystem::NativeExtensionBindingsSystem(
base::Bind(&ContentSetting::Create, base::Bind(&CallJsFunction)));
api_system_.GetHooksForAPI("webRequest")
->SetDelegate(base::MakeUnique<WebRequestHooks>());
+ api_system_.GetHooksForAPI("declarativeContent")
+ ->SetDelegate(base::MakeUnique<DeclarativeContentHooksDelegate>());
}
NativeExtensionBindingsSystem::~NativeExtensionBindingsSystem() {}
« no previous file with comments | « extensions/renderer/declarative_content_hooks_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698