Commit dd1a0321 authored by Wez's avatar Wez Committed by Commit Bot

Migrate MockAdbServer off of QuitCurrent*Deprecated().

Bug: 859095
Change-Id: Ibe8a52dfacad07b1cb9f04e720af063f67f9a3b0
Reviewed-on: https://chromium-review.googlesource.com/1200838Reviewed-by: default avatarPavel Feldman <pfeldman@chromium.org>
Commit-Queue: Wez <wez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#589398}
parent a11e3884
......@@ -623,17 +623,18 @@ void MockAndroidConnection::SendHTTPResponse(const std::string& body) {
}
void StartMockAdbServer(FlushMode flush_mode) {
base::RunLoop run_loop;
BrowserThread::PostTaskAndReply(
BrowserThread::IO, FROM_HERE,
base::BindOnce(&StartMockAdbServerOnIOThread, flush_mode),
base::RunLoop::QuitCurrentWhenIdleClosureDeprecated());
content::RunMessageLoop();
run_loop.QuitClosure());
run_loop.Run();
}
void StopMockAdbServer() {
BrowserThread::PostTaskAndReply(
BrowserThread::IO, FROM_HERE,
base::BindOnce(&StopMockAdbServerOnIOThread),
base::RunLoop::QuitCurrentWhenIdleClosureDeprecated());
content::RunMessageLoop();
base::RunLoop run_loop;
BrowserThread::PostTaskAndReply(BrowserThread::IO, FROM_HERE,
base::BindOnce(&StopMockAdbServerOnIOThread),
run_loop.QuitClosure());
run_loop.Run();
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment