| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 | 5 |
| 6 /** | 6 /** |
| 7 * This URL is defined in content/public/test/test_mojo_app.cc. It identifies | 7 * This URL is defined in content/public/test/test_mojo_app.cc. It identifies |
| 8 * content_shell's out-of-process Mojo test app. | 8 * content_shell's out-of-process Mojo test app. |
| 9 */ | 9 */ |
| 10 var TEST_APP_URL = 'system:content_mojo_test'; | 10 var TEST_APP_URL = 'system:content_mojo_test'; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 return function() { | 30 return function() { |
| 31 domAutomationController.setAutomationId(0); | 31 domAutomationController.setAutomationId(0); |
| 32 var connectorPipe = | 32 var connectorPipe = |
| 33 serviceRegistry.connectToService(connectorMojom.Connector.name); | 33 serviceRegistry.connectToService(connectorMojom.Connector.name); |
| 34 var connector = new connectorMojom.Connector.proxyClass( | 34 var connector = new connectorMojom.Connector.proxyClass( |
| 35 new router.Router(connectorPipe)); | 35 new router.Router(connectorPipe)); |
| 36 | 36 |
| 37 connector.connect( | 37 connector.connect( |
| 38 TEST_APP_URL, 1, | 38 TEST_APP_URL, connectorMojom.kInheritUserID, |
| 39 function (services) { | 39 function (services) { |
| 40 var test = connectToService(services, testMojom.TestMojoService); | 40 var test = connectToService(services, testMojom.TestMojoService); |
| 41 test.getRequestorName().then(function(response) { | 41 test.getRequestorName().then(function(response) { |
| 42 domAutomationController.send( | 42 domAutomationController.send( |
| 43 response.name == 'chrome://mojo-web-ui/'); | 43 response.name == 'chrome://mojo-web-ui/'); |
| 44 }); | 44 }); |
| 45 }, | 45 }, |
| 46 function (exposedServices) {}); | 46 function (exposedServices) {}); |
| 47 }; | 47 }; |
| 48 }); | 48 }); |
| OLD | NEW |