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

Unified Diff: device/serial/serial_connection_factory.h

Issue 1107013002: [device] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Review Comments 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 | « no previous file | device/serial/serial_connection_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/serial_connection_factory.h
diff --git a/device/serial/serial_connection_factory.h b/device/serial/serial_connection_factory.h
index befb209c0825532fb7f89778abf267a4ed661442..5153406704f2d736cbcc1f6ad82f3f8a39ea4382 100644
--- a/device/serial/serial_connection_factory.h
+++ b/device/serial/serial_connection_factory.h
@@ -10,6 +10,8 @@
#include "base/callback.h"
#include "base/memory/ref_counted.h"
#include "base/message_loop/message_loop_proxy.h"
Ken Rockot(use gerrit already) 2015/04/28 05:02:02 Oops, missed this before. Please also remove uses
Pranay 2015/05/04 03:25:23 Done.
+#include "base/single_thread_task_runner.h"
+#include "base/thread_task_runner_handle.h"
#include "device/serial/data_stream.mojom.h"
#include "device/serial/serial.mojom.h"
#include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h"
@@ -25,7 +27,7 @@ class SerialConnectionFactory
SerialConnectionFactory(
const IoHandlerFactory& io_handler_factory,
- scoped_refptr<base::MessageLoopProxy> connect_message_loop);
+ scoped_refptr<base::SingleThreadTaskRunner> connect_task_runner);
void CreateConnection(
const std::string& path,
@@ -42,7 +44,7 @@ class SerialConnectionFactory
virtual ~SerialConnectionFactory();
const IoHandlerFactory io_handler_factory_;
- scoped_refptr<base::MessageLoopProxy> connect_message_loop_;
+ scoped_refptr<base::SingleThreadTaskRunner> connect_task_runner_;
DISALLOW_COPY_AND_ASSIGN(SerialConnectionFactory);
};
« no previous file with comments | « no previous file | device/serial/serial_connection_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698