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

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

Issue 2571903003: Mojo JS bindings: switch most usage of "connection"/"router" module to "bindings". (Closed)
Patch Set: remove the changes to web_ui_mojo.js which seemed to cause flakiness. 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 7b3a9e4cb8ac82f6ef89a2b58df6d5c143c3f6d4..6c48ccada6ab745828b428e246f27ede7d4f8e25 100644
--- a/ios/web/test/data/mojo_test.js
+++ b/ios/web/test/data/mojo_test.js
@@ -13,10 +13,9 @@ function getBrowserProxy() {
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, connection, mojom, frameInterfaces) {
+ ], function(bindings, mojom, frameInterfaces) {
var pageImpl, browserProxy;
/** @constructor */
@@ -35,9 +34,8 @@ function getBrowserProxy() {
},
};
- browserProxy = connection.bindHandleToProxy(
- frameInterfaces.getInterface(mojom.TestUIHandlerMojo.name),
- mojom.TestUIHandlerMojo);
+ browserProxy = new mojom.TestUIHandlerMojoPtr(
+ frameInterfaces.getInterface(mojom.TestUIHandlerMojo.name));
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