Shutdown the It2Me host cleanly.
commit1a7589308f5cda5f58fa70a515962add2a33f7a3
authorsergeyu <sergeyu@chromium.org>
Fri, 30 Jan 2015 20:02:24 +0000 (30 12:02 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 30 Jan 2015 20:04:13 +0000 (30 20:04 +0000)
treef4a77c6437563f39c7983e47f3e7b5a019136d74
parent4c55f398def3214369aefa9f2f2e8f5940d3799d
Shutdown the It2Me host cleanly.

Previously It2Me host was shutting down before letting all shutdown
tasks finish, which would often cause crashes.
Now NativeMessagingPipe is responsible for host and channel deletion
and the task runner for the main thread doesn't stop until the host
is destroyed.

BUG=453016

Review URL: https://codereview.chromium.org/887853002

Cr-Commit-Position: refs/heads/master@{#313967}
remoting/host/it2me/it2me_native_messaging_host_main.cc
remoting/host/it2me/it2me_native_messaging_host_unittest.cc
remoting/host/native_messaging/native_messaging_pipe.cc
remoting/host/native_messaging/native_messaging_pipe.h