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

Unified Diff: remoting/test/protocol_perftest.cc

Issue 2104363004: Remove remaining calls to deprecated MessageLoop methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR gab Created 4 years, 5 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
Index: remoting/test/protocol_perftest.cc
diff --git a/remoting/test/protocol_perftest.cc b/remoting/test/protocol_perftest.cc
index ff91f6fa95835f28b3371ca5a41a94c1b9a62234..cb4f9b3f1a4497b49f8dce7c48ca601ce7312bee 100644
--- a/remoting/test/protocol_perftest.cc
+++ b/remoting/test/protocol_perftest.cc
@@ -210,10 +210,9 @@ class ProtocolPerfTest
// HostStatusObserver interface.
void OnClientConnected(const std::string& jid) override {
- message_loop_.PostTask(
- FROM_HERE,
- base::Bind(&ProtocolPerfTest::OnHostConnectedMainThread,
- base::Unretained(this)));
+ message_loop_.task_runner()->PostTask(
+ FROM_HERE, base::Bind(&ProtocolPerfTest::OnHostConnectedMainThread,
+ base::Unretained(this)));
}
protected:
@@ -367,9 +366,9 @@ class ProtocolPerfTest
host_->AddStatusObserver(this);
host_->Start(kHostOwner);
- message_loop_.PostTask(FROM_HERE,
- base::Bind(&ProtocolPerfTest::StartClientAfterHost,
- base::Unretained(this)));
+ message_loop_.task_runner()->PostTask(
+ FROM_HERE, base::Bind(&ProtocolPerfTest::StartClientAfterHost,
+ base::Unretained(this)));
}
void StartClientAfterHost() {
« no previous file with comments | « remoting/protocol/negotiating_authenticator_unittest.cc ('k') | services/shell/tests/shell/shell_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698