Make sure all callbacks are executed in ServiceWorkerBrowserTest
This CL attempts to fix flakiness of some service worker browsertests. Before this CL, we destroyed ServiceWorkerContextWrapper in TearDownOnMainThread() without waiting for all callbacks are executed. This caused DCHECK hit in mojo callbacks of ServiceWorkerStorageControl because destroying the wrapper also destroys a mojo connection to ServiceWorkerStorageControl. Mojo callbacks need to be executed before the corresponding remote is destroyed. Bug: 1137529 Change-Id: I3060d5ba687e8164c6f29f1e24395ce09c26abfe Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2467037Reviewed-by:Makoto Shimazu <shimazu@chromium.org> Commit-Queue: Kenichi Ishibashi <bashi@chromium.org> Cr-Commit-Position: refs/heads/master@{#816429}
Showing
Please register or sign in to comment