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() { |