ServiceWorker: Add a check if error handler runs on the right thread
As observation in https://crbug.com/658702, I found the mojo error handler
(EWInstance::Detach in this case) is called on the UI thread when the message
loop on the UI thread gets destructed though EWInstance is on the IO
thread. This patch is to check the running thread before the error handling to
avoid unexpected threading issues.
BUG=658702,604762
Review-Url: https://codereview.chromium.org/2467223002
Cr-Commit-Position: refs/heads/master@{#430208}
1 file changed