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

Unified Diff: extensions/renderer/api_binding.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/BUILD.gn ('k') | extensions/renderer/api_binding_hooks.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/api_binding.cc
diff --git a/extensions/renderer/api_binding.cc b/extensions/renderer/api_binding.cc
index 8652b713c11623ece33c9a30f45d710ed19f20db..5997512d0d13b47850238c3a442feef8290b29ff 100644
--- a/extensions/renderer/api_binding.cc
+++ b/extensions/renderer/api_binding.cc
@@ -376,6 +376,10 @@ void APIBinding::InitializeTemplate(v8::Isolate* isolate) {
*property_definitions_);
}
+ // Allow custom bindings a chance to tweak the template, such as to add
+ // additional properties or types.
+ binding_hooks_->InitializeTemplate(isolate, object_template, *type_refs_);
+
object_template_.Set(isolate, object_template);
}
« no previous file with comments | « extensions/renderer/BUILD.gn ('k') | extensions/renderer/api_binding_hooks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698