| Index: content/test/data/web_ui_mojo.js
|
| diff --git a/content/test/data/web_ui_mojo.js b/content/test/data/web_ui_mojo.js
|
| index 643b35d5b8ed8d6a941f3a58a2f30f04cfc7af49..38b01940c45e7568339293ccc46bee8b37bfc998 100644
|
| --- a/content/test/data/web_ui_mojo.js
|
| +++ b/content/test/data/web_ui_mojo.js
|
| @@ -7,27 +7,16 @@ define('main', [
|
| 'content/test/data/web_ui_test_mojo_bindings.mojom',
|
| 'content/public/renderer/service_provider',
|
| ], function (connection, bindings, serviceProvider) {
|
| - var retainedConnection;
|
| -
|
| - function RendererTargetTest(bindings) {
|
| - this.bindings_ = bindings;
|
| - }
|
| -
|
| - // TODO(aa): It is a bummer to need this stub object in JavaScript. We should
|
| - // have a 'client' object that contains both the sending and receiving bits of
|
| - // the client side of the interface. Since JS is loosely typed, we do not need
|
| - // a separate base class to inherit from to receive callbacks.
|
| - RendererTargetTest.prototype =
|
| - Object.create(bindings.RendererTarget.stubClass.prototype);
|
| -
|
| - RendererTargetTest.prototype.ping = function () {
|
| - this.bindings_.pingResponse();
|
| - };
|
| + var browserTarget;
|
|
|
| return function() {
|
| - retainedConnection = new connection.Connection(
|
| + browserTarget = connection.bindProxyHandle(
|
| serviceProvider.connectToService(bindings.BrowserTarget.name),
|
| - RendererTargetTest,
|
| - bindings.BrowserTarget.proxyClass);
|
| + undefined,
|
| + bindings.BrowserTarget);
|
| +
|
| + browserTarget.start().then(function() {
|
| + browserTarget.stop();
|
| + });
|
| };
|
| });
|
|
|