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

Unified Diff: device/serial/data_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_sender.h ('k') | device/serial/data_sink_receiver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/data_sender.cc
diff --git a/device/serial/data_sender.cc b/device/serial/data_sender.cc
index dbd17760161104010d90dd336ea33940c40e496c..fdf5171e56ca3c0a0c3562815aaa4d29b3083f2c 100644
--- a/device/serial/data_sender.cc
+++ b/device/serial/data_sender.cc
@@ -52,7 +52,8 @@ DataSender::DataSender(mojo::InterfacePtr<serial::DataSink> sink,
: sink_(sink.Pass()),
fatal_error_value_(fatal_error_value),
shut_down_(false) {
- sink_.set_error_handler(this);
+ sink_.set_connection_error_handler(
+ base::Bind(&DataSender::OnConnectionError, base::Unretained(this)));
}
DataSender::~DataSender() {
« no previous file with comments | « device/serial/data_sender.h ('k') | device/serial/data_sink_receiver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698