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

Unified Diff: extensions/renderer/native_extension_bindings_system.cc

Issue 2762623003: [Extensions Bindings] Add lastError utilities to APIBindingJSUtil (Closed)
Patch Set: . 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
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 0e65f4703110c25278612ed894b6caebd4eb95bf..4702847bd31ddf40b6b27c2077d5cb7bb95d93d5 100644
--- a/extensions/renderer/native_extension_bindings_system.cc
+++ b/extensions/renderer/native_extension_bindings_system.cc
@@ -642,11 +642,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();
}

Powered by Google App Engine
This is Rietveld 408576698