Chromium Code Reviews

Unified Diff: mojo/apps/js/mojo_bridge_module.cc

Issue 665743003: Mojo JS Bindings: Simplify sharing services for content-provided JS applications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Complete Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: mojo/apps/js/mojo_bridge_module.cc
diff --git a/mojo/apps/js/mojo_bridge_module.cc b/mojo/apps/js/mojo_bridge_module.cc
index 691a1e8c04d9a7154260b1f4daaf448fd520bc7a..c5c3cbf41167d3f9857320b231ca91f99fa21d48 100644
--- a/mojo/apps/js/mojo_bridge_module.cc
+++ b/mojo/apps/js/mojo_bridge_module.cc
@@ -30,8 +30,11 @@ v8::Local<v8::Value> MojoInternals::GetModule(JSApp* js_app,
if (templ.IsEmpty()) {
templ = gin::ObjectTemplateBuilder(isolate)
- .SetMethod("connectToService",
- base::Bind(&JSApp::ConnectToService,
+ .SetMethod("requestorMessagePipeHandle",
+ base::Bind(&JSApp::RequestorMessagePipeHandle,
+ base::Unretained(js_app)))
+ .SetMethod("connectToApplication",
+ base::Bind(&JSApp::ConnectToApplication,
base::Unretained(js_app)))
.SetMethod("quit",
base::Bind(&JSApp::Quit, base::Unretained(js_app)))

Powered by Google App Engine