| Index: content/test/data/web_ui_mojo_shell_test.js
|
| diff --git a/content/test/data/web_ui_mojo_shell_test.js b/content/test/data/web_ui_mojo_shell_test.js
|
| index 68f95ebf13959e56fb484daa3a9cdb8aa2d7c73b..9b6cfc4aa796663a972905eab85cf704d841e822 100644
|
| --- a/content/test/data/web_ui_mojo_shell_test.js
|
| +++ b/content/test/data/web_ui_mojo_shell_test.js
|
| @@ -30,15 +30,18 @@ define('main', [
|
| domAutomationController.setAutomationId(0);
|
| var shellPipe = serviceRegistry.connectToService(shellMojom.Shell.name);
|
| var shell = new shellMojom.Shell.proxyClass(new router.Router(shellPipe));
|
| - shell.connect(TEST_APP_URL, 1,
|
| - function (services) {
|
| - var test = connectToService(services, testMojom.TestMojoService);
|
| - test.getRequestorURL().then(function(response) {
|
| - domAutomationController.send(
|
| - response.url == 'chrome://mojo-web-ui/');
|
| - });
|
| - },
|
| - function (exposedServices) {},
|
| - new shellMojom.CapabilityFilter({ filter: new Map([["*", ["*"]]]) }));
|
| + shell.getConnector(function(connector) {
|
| + connector.connect(TEST_APP_URL, 1,
|
| + function (services) {
|
| + var test = connectToService(services, testMojom.TestMojoService);
|
| + test.getRequestorURL().then(function (response) {
|
| + domAutomationController.send(
|
| + response.url == 'chrome://mojo-web-ui/');
|
| + });
|
| + },
|
| + function (exposedServices) { },
|
| + new shellMojom.CapabilityFilter({ filter: new Map([["*", ["*"]]]) }));
|
| + });
|
| + });
|
| };
|
| });
|
|
|