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

Unified Diff: third_party/WebKit/LayoutTests/resources/mojo-helpers.js

Issue 1639233004: Revert of [mojo] Enable ServiceRegistryImpl to override remote services (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@usb-testing-3
Patch Set: Created 4 years, 11 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
« no previous file with comments | « third_party/WebKit/LayoutTests/harness-tests/mojo-helpers.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/resources/mojo-helpers.js
diff --git a/third_party/WebKit/LayoutTests/resources/mojo-helpers.js b/third_party/WebKit/LayoutTests/resources/mojo-helpers.js
index 625d7fdfe46e06c320489bf8f8267644dfb9c658..8752dd16989983ce2aea49bc3eaa26e35a1f4f8b 100644
--- a/third_party/WebKit/LayoutTests/resources/mojo-helpers.js
+++ b/third_party/WebKit/LayoutTests/resources/mojo-helpers.js
@@ -35,25 +35,3 @@
});
}, name, properties);
}
-
-// Polls aggressively for a message to become available on a pipe.
-function mojo_wait_for_incoming_message(mojo, pipe) {
- return new Promise((resolve, reject) => {
- let wait = () => {
- let result = mojo.core.readMessage(pipe, 0);
- if (result.result === mojo.core.RESULT_SHOULD_WAIT) {
- setTimeout(wait);
- return;
- }
-
- if (result.result !== mojo.core.RESULT_OK) {
- reject(result.result);
- return;
- }
-
- resolve({ buffer: result.buffer, handles: result.handles });
- };
-
- wait();
- });
-};
« no previous file with comments | « third_party/WebKit/LayoutTests/harness-tests/mojo-helpers.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698