| OLD | NEW |
| 1 /* | 1 /* |
| 2 * geolocation-mock contains a mock implementation of GeolocationService and | 2 * geolocation-mock contains a mock implementation of GeolocationService and |
| 3 * PermissionService. | 3 * PermissionService. |
| 4 */ | 4 */ |
| 5 | 5 |
| 6 "use strict"; | 6 "use strict"; |
| 7 | 7 |
| 8 let geolocationServiceMock = loadMojoModules( | 8 let geolocationServiceMock = loadMojoModules( |
| 9 'geolocationServiceMock', | 9 'geolocationServiceMock', |
| 10 ['device/geolocation/public/interfaces/geolocation.mojom', | 10 ['device/geolocation/public/interfaces/geolocation.mojom', |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 setGeolocationPermission(allowed) { | 177 setGeolocationPermission(allowed) { |
| 178 this.permissionStatus_ = allowed ? | 178 this.permissionStatus_ = allowed ? |
| 179 permissionStatus.PermissionStatus.GRANTED : | 179 permissionStatus.PermissionStatus.GRANTED : |
| 180 permissionStatus.PermissionStatus.DENIED; | 180 permissionStatus.PermissionStatus.DENIED; |
| 181 this.runPermissionCallback_(); | 181 this.runPermissionCallback_(); |
| 182 } | 182 } |
| 183 | 183 |
| 184 } | 184 } |
| 185 return new GeolocationServiceMock(mojo.frameInterfaces); | 185 return new GeolocationServiceMock(mojo.frameInterfaces); |
| 186 }); | 186 }); |
| OLD | NEW |