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

Unified Diff: ios/web/test/data/mojo_test.js

Issue 2590393002: Revert of Mojo JS bindings: switch most usage of "connection"/"router" module to "bindings". (Closed)
Patch Set: Created 4 years 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: ios/web/test/data/mojo_test.js
diff --git a/ios/web/test/data/mojo_test.js b/ios/web/test/data/mojo_test.js
index 6c48ccada6ab745828b428e246f27ede7d4f8e25..7b3a9e4cb8ac82f6ef89a2b58df6d5c143c3f6d4 100644
--- a/ios/web/test/data/mojo_test.js
+++ b/ios/web/test/data/mojo_test.js
@@ -13,9 +13,10 @@
return new Promise(function(resolve, reject) {
define([
'mojo/public/js/bindings',
+ 'mojo/public/js/connection',
'ios/web/test/mojo_test.mojom',
'content/public/renderer/frame_interfaces',
- ], function(bindings, mojom, frameInterfaces) {
+ ], function(bindings, connection, mojom, frameInterfaces) {
var pageImpl, browserProxy;
/** @constructor */
@@ -34,8 +35,9 @@
},
};
- browserProxy = new mojom.TestUIHandlerMojoPtr(
- frameInterfaces.getInterface(mojom.TestUIHandlerMojo.name));
+ browserProxy = connection.bindHandleToProxy(
+ frameInterfaces.getInterface(mojom.TestUIHandlerMojo.name),
+ mojom.TestUIHandlerMojo);
pageImpl = new TestPageImpl();
browserProxy.setClientPage(pageImpl.binding.createInterfacePtrAndBind());
« no previous file with comments | « headless/test/data/page_two.html ('k') | third_party/WebKit/LayoutTests/battery-status/resources/mock-battery-monitor.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698