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

Unified Diff: device/serial/serial_connection_factory.cc

Issue 1107013002: [device] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Review Comments : Removal of message_loop_proxy header file Created 5 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
« no previous file with comments | « device/serial/serial_connection_factory.h ('k') | device/serial/serial_connection_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/serial_connection_factory.cc
diff --git a/device/serial/serial_connection_factory.cc b/device/serial/serial_connection_factory.cc
index 85a3e2e9ba65e2f8038b1e1ec08cabe4cf823209..654b3e840f5d5f0455e1db50e4f59ead83f3d9e6 100644
--- a/device/serial/serial_connection_factory.cc
+++ b/device/serial/serial_connection_factory.cc
@@ -61,9 +61,9 @@ class SerialConnectionFactory::ConnectTask
SerialConnectionFactory::SerialConnectionFactory(
const IoHandlerFactory& io_handler_factory,
- scoped_refptr<base::MessageLoopProxy> connect_message_loop)
+ scoped_refptr<base::SingleThreadTaskRunner> connect_task_runner)
: io_handler_factory_(io_handler_factory),
- connect_message_loop_(connect_message_loop) {
+ connect_task_runner_(connect_task_runner) {
}
void SerialConnectionFactory::CreateConnection(
@@ -104,7 +104,7 @@ SerialConnectionFactory::ConnectTask::ConnectTask(
}
void SerialConnectionFactory::ConnectTask::Run() {
- factory_->connect_message_loop_->PostTask(
+ factory_->connect_task_runner_->PostTask(
FROM_HERE,
base::Bind(&SerialConnectionFactory::ConnectTask::Connect, this));
}
« no previous file with comments | « device/serial/serial_connection_factory.h ('k') | device/serial/serial_connection_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698