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

Unified Diff: device/serial/data_source_sender.cc

Issue 1212023004: Convert all usages of mojo::ErrorHandler in //device/serial to callbacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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/data_source_sender.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/data_source_sender.cc
diff --git a/device/serial/data_source_sender.cc b/device/serial/data_source_sender.cc
index 97029dda656e490603edea3c7d9b73161157bf4c..5b4299239560be45c0cc927f84e48aa57f7d3c1a 100644
--- a/device/serial/data_source_sender.cc
+++ b/device/serial/data_source_sender.cc
@@ -85,8 +85,10 @@ DataSourceSender::DataSourceSender(
shut_down_(false),
weak_factory_(this) {
DCHECK(!ready_callback.is_null() && !error_callback.is_null());
- binding_.set_error_handler(this);
- client_.set_error_handler(this);
+ binding_.set_connection_error_handler(
+ base::Bind(&DataSourceSender::OnConnectionError, base::Unretained(this)));
+ client_.set_connection_error_handler(
+ base::Bind(&DataSourceSender::OnConnectionError, base::Unretained(this)));
}
void DataSourceSender::ShutDown() {
« no previous file with comments | « device/serial/data_source_sender.h ('k') | device/serial/serial_connection_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698