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

Unified Diff: extensions/renderer/native_extension_bindings_system.cc

Issue 2762623003: [Extensions Bindings] Add lastError utilities to APIBindingJSUtil (Closed)
Patch Set: Rebase Created 3 years, 9 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/api_request_handler.h ('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 c777890f1493869d0a1cfebe2d60e39deb68487d..98b2ee43092e79397ac6498f5453a2eaab21047a 100644
--- a/extensions/renderer/native_extension_bindings_system.cc
+++ b/extensions/renderer/native_extension_bindings_system.cc
@@ -647,11 +647,11 @@ void NativeExtensionBindingsSystem::OnEventListenerChanged(
void NativeExtensionBindingsSystem::GetJSBindingUtil(
v8::Local<v8::Context> context,
v8::Local<v8::Value>* binding_util_out) {
- gin::Handle<APIBindingJSUtil> handle =
- gin::CreateHandle(context->GetIsolate(),
- new APIBindingJSUtil(api_system_.type_reference_map(),
- api_system_.request_handler(),
- api_system_.event_handler()));
+ gin::Handle<APIBindingJSUtil> handle = gin::CreateHandle(
+ context->GetIsolate(),
+ new APIBindingJSUtil(
+ api_system_.type_reference_map(), api_system_.request_handler(),
+ api_system_.event_handler(), base::Bind(&CallJsFunction)));
*binding_util_out = handle.ToV8();
}
« no previous file with comments | « extensions/renderer/api_request_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698