Chromium Code Reviews| 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 086dc0041252bc901e67f7708a6d92436c7324b8..7289c665c16630a6aa2ed8ed1349ab97eb28b94b 100644 |
| --- a/content/test/data/web_ui_mojo.js |
| +++ b/content/test/data/web_ui_mojo.js |
| @@ -5,7 +5,8 @@ |
| define('main', [ |
| 'mojo/public/js/bindings/connection', |
| 'content/test/data/web_ui_test_mojo_bindings.mojom', |
| -], function (connection, bindings) { |
| + 'content/public/renderer/service_provider', |
| +], function (connection, bindings, serviceProvider) { |
| var retainedConnection; |
| function RendererTargetTest(bindings) { |
| @@ -23,8 +24,11 @@ define('main', [ |
| this.bindings_.pingResponse(); |
| }; |
| - return function(handle) { |
| + return function() { |
| retainedConnection = new connection.Connection( |
| - handle, RendererTargetTest, bindings.BrowserTargetProxy); |
| + // TODO(sammc): Avoid using NAME_ directly. |
| + serviceProvider.connectToService(bindings.BrowserTargetProxy.NAME_), |
|
darin (slow to review)
2014/06/28 21:10:38
Hmm, it is odd that the NAME_ variable is on Brows
Sam McNally
2014/06/30 01:26:14
BrowserTarget doesn't actually exist in the curren
|
| + RendererTargetTest, |
| + bindings.BrowserTargetProxy); |
| }; |
| }); |