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

Unified Diff: remoting/protocol/connection_tester.cc

Issue 14314026: remoting: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/protocol/connection_tester.cc
diff --git a/remoting/protocol/connection_tester.cc b/remoting/protocol/connection_tester.cc
index 1e87b8f2191340555bd11c553660e147f525f59f..e39f29eb15a96dfd2f8fbe54c208a5b710585ac5 100644
--- a/remoting/protocol/connection_tester.cc
+++ b/remoting/protocol/connection_tester.cc
@@ -18,15 +18,14 @@ StreamConnectionTester::StreamConnectionTester(net::StreamSocket* client_socket,
net::StreamSocket* host_socket,
int message_size,
int message_count)
- : message_loop_(MessageLoop::current()),
+ : message_loop_(base::MessageLoop::current()),
host_socket_(host_socket),
client_socket_(client_socket),
message_size_(message_size),
test_data_size_(message_size * message_count),
done_(false),
write_errors_(0),
- read_errors_(0) {
-}
+ read_errors_(0) {}
alexeypa (please no reviews) 2013/04/29 17:17:41 nit: the closing bracket should got to a separate
xhwang 2013/04/30 00:02:36 Done.
StreamConnectionTester::~StreamConnectionTester() {
}
@@ -52,7 +51,7 @@ void StreamConnectionTester::CheckResults() {
void StreamConnectionTester::Done() {
done_ = true;
- message_loop_->PostTask(FROM_HERE, MessageLoop::QuitClosure());
+ message_loop_->PostTask(FROM_HERE, base::MessageLoop::QuitClosure());
}
void StreamConnectionTester::InitBuffers() {
@@ -130,7 +129,7 @@ DatagramConnectionTester::DatagramConnectionTester(net::Socket* client_socket,
int message_size,
int message_count,
int delay_ms)
- : message_loop_(MessageLoop::current()),
+ : message_loop_(base::MessageLoop::current()),
host_socket_(host_socket),
client_socket_(client_socket),
message_size_(message_size),
@@ -167,7 +166,7 @@ void DatagramConnectionTester::CheckResults() {
void DatagramConnectionTester::Done() {
done_ = true;
- message_loop_->PostTask(FROM_HERE, MessageLoop::QuitClosure());
+ message_loop_->PostTask(FROM_HERE, base::MessageLoop::QuitClosure());
}
void DatagramConnectionTester::DoWrite() {

Powered by Google App Engine
This is Rietveld 408576698