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

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: fix build Created 4 years, 6 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 df566af0808fb27a534cf8cdd6aec95445345773..3a9de4e83541f8c614da1f1ed81514c03b424cbf 100644
--- a/remoting/test/protocol_perftest.cc
+++ b/remoting/test/protocol_perftest.cc
@@ -206,10 +206,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:
@@ -363,9 +362,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() {

Powered by Google App Engine
This is Rietveld 408576698