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

Unified Diff: LayoutTests/http/tests/navigatorconnect/resources/connect-helper.js

Issue 1191393003: Update client side navigator.connect API to use ServicePortCollection [1/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@serviceport
Patch Set: address more comments Created 5 years, 6 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: LayoutTests/http/tests/navigatorconnect/resources/connect-helper.js
diff --git a/LayoutTests/http/tests/navigatorconnect/resources/connect-helper.js b/LayoutTests/http/tests/navigatorconnect/resources/connect-helper.js
index 225b608d0accb51194c350b5db8f7e2041047046..b479a149c7aa81a2d1e35b02b170e6a466536df3 100644
--- a/LayoutTests/http/tests/navigatorconnect/resources/connect-helper.js
+++ b/LayoutTests/http/tests/navigatorconnect/resources/connect-helper.js
@@ -1,9 +1,11 @@
if ("importScripts" in self) {
importScripts("/resources/testharness-helpers.js");
+ importScripts("test-helpers.js");
}
self.onmessage = function(e) {
- navigator.connect(e.data.connect)
+ var service = e.data.connect;
+ first_to_resolve([wrap_in_port(navigator.services.connect(service)), navigator.connect(service)])
.then(function(port) {
e.data.port.postMessage({success: true, result: port}, [port]);
})

Powered by Google App Engine
This is Rietveld 408576698