Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(835)

Unified Diff: third_party/WebKit/LayoutTests/geolocation-api/resources/geolocation-mock.js

Issue 2405093003: [WIP] Mojo native bindings interface.
Patch Set: fixes webui tests Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/geolocation-api/resources/geolocation-mock.js
diff --git a/third_party/WebKit/LayoutTests/geolocation-api/resources/geolocation-mock.js b/third_party/WebKit/LayoutTests/geolocation-api/resources/geolocation-mock.js
index 40b657d80afa99db488a8fc128d1449c98d2abdc..39d66197def4600bccab32d35f691fa5aa449df0 100644
--- a/third_party/WebKit/LayoutTests/geolocation-api/resources/geolocation-mock.js
+++ b/third_party/WebKit/LayoutTests/geolocation-api/resources/geolocation-mock.js
@@ -60,7 +60,7 @@ let geolocationServiceMock = loadMojoModules(
connectGeolocation_(handle) {
if (this.rejectGeolocationConnections_) {
- mojo.core.close(handle);
+ handle.close();
return;
}
this.geolocationBindingSet_.addBinding(this, handle);
@@ -68,7 +68,7 @@ let geolocationServiceMock = loadMojoModules(
connectPermission_(handle) {
if (this.rejectPermissionConnections_) {
- mojo.core.close(handle);
+ handle.close();
return;
}
this.permissionBindingSet_.addBinding(this, handle);

Powered by Google App Engine
This is Rietveld 408576698