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

Unified Diff: tools/battor_agent/battor_connection_impl.cc

Issue 2914173002: Removing file_thread_task_runner parameter from SerialIoHandler (Closed)
Patch Set: removed unused variable Created 3 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
« no previous file with comments | « tools/battor_agent/battor_connection_impl.h ('k') | tools/battor_agent/battor_connection_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/battor_agent/battor_connection_impl.cc
diff --git a/tools/battor_agent/battor_connection_impl.cc b/tools/battor_agent/battor_connection_impl.cc
index a6b861878eaa4ad4827b2dd8960d5664b1c04a42..8e494e1a26b26899a63fd1ea857961338b5eb2e5 100644
--- a/tools/battor_agent/battor_connection_impl.cc
+++ b/tools/battor_agent/battor_connection_impl.cc
@@ -61,11 +61,9 @@ size_t GetMaxBytesForMessageType(BattOrMessageType type) {
BattOrConnectionImpl::BattOrConnectionImpl(
const std::string& path,
BattOrConnection::Listener* listener,
- scoped_refptr<base::SingleThreadTaskRunner> file_thread_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> ui_thread_task_runner)
: BattOrConnection(listener),
path_(path),
- file_thread_task_runner_(file_thread_task_runner),
ui_thread_task_runner_(ui_thread_task_runner) {
std::string serial_log_path =
base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
@@ -193,8 +191,7 @@ void BattOrConnectionImpl::Flush() {
}
scoped_refptr<device::SerialIoHandler> BattOrConnectionImpl::CreateIoHandler() {
- return device::SerialIoHandler::Create(file_thread_task_runner_,
- ui_thread_task_runner_);
+ return device::SerialIoHandler::Create(ui_thread_task_runner_);
}
void BattOrConnectionImpl::BeginReadBytes(size_t max_bytes_to_read) {
« no previous file with comments | « tools/battor_agent/battor_connection_impl.h ('k') | tools/battor_agent/battor_connection_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698