| Index: third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/resources/geolocation.html
 | 
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/resources/geolocation.html b/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/resources/geolocation.html
 | 
| index 5b8b23bac4fcb6c67d1c7b2602ce9c4577247cb8..d384bb27a72d9f5aeb487148a5d76388f9586c53 100644
 | 
| --- a/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/resources/geolocation.html
 | 
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/resources/geolocation.html
 | 
| @@ -1,25 +1,25 @@
 | 
|  <!DOCTYPE html>
 | 
|  <title>Geolocation On A Secure Origin</title>
 | 
| +<script src="/resources/mojo-helpers.js"></script>
 | 
| +<script src="/resources/geolocation-mock.js"></script>
 | 
|  <script>
 | 
|  var mockLatitude = 51.478;
 | 
|  var mockLongitude = -0.166;
 | 
|  var mockAccuracy = 100.0;
 | 
|  
 | 
| -if (!window.internals)
 | 
| -    console.error('This test can not run without internals');
 | 
| +if (!window.mojo)
 | 
| +    console.error('This test can not run without mojo');
 | 
|  
 | 
| -internals.setGeolocationClientMock(document);
 | 
| -internals.setGeolocationPermission(document, true);
 | 
| -internals.setGeolocationPosition(document,
 | 
| -                                 mockLatitude,
 | 
| -                                 mockLongitude,
 | 
| -                                 mockAccuracy);
 | 
| +geolocationServiceMock.then(mock => {
 | 
| +    mock.setGeolocationPermission(true);
 | 
| +    mock.setGeolocationPosition(mockLatitude, mockLongitude, mockAccuracy);
 | 
|  
 | 
| -navigator.geolocation.getCurrentPosition(
 | 
| -    function () {
 | 
| -        window.parent.postMessage({ success: true }, "*");
 | 
| -    },
 | 
| -    function (error) {
 | 
| -        window.parent.postMessage({ message: error.message }, "*");
 | 
| -    }, { maximumAge: 10000 });
 | 
| +    navigator.geolocation.getCurrentPosition(
 | 
| +        function () {
 | 
| +            window.parent.postMessage({ success: true }, "*");
 | 
| +        },
 | 
| +        function (error) {
 | 
| +            window.parent.postMessage({ message: error.message }, "*");
 | 
| +        }, { maximumAge: 10000 });
 | 
| +});
 | 
|  </script>
 | 
| 
 |