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

Unified Diff: device/serial/data_sink_receiver.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_sink_receiver.h ('k') | device/serial/data_source_sender.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/data_sink_receiver.cc
diff --git a/device/serial/data_sink_receiver.cc b/device/serial/data_sink_receiver.cc
index ff66c1cb9c1729eae9e92d358f216d4fd0d10151..64ddea168c774aad1ddfe78e46c40b2160442f48 100644
--- a/device/serial/data_sink_receiver.cc
+++ b/device/serial/data_sink_receiver.cc
@@ -79,7 +79,8 @@ DataSinkReceiver::DataSinkReceiver(
buffer_in_use_(NULL),
shut_down_(false),
weak_factory_(this) {
- binding_.set_error_handler(this);
+ binding_.set_connection_error_handler(
+ base::Bind(&DataSinkReceiver::OnConnectionError, base::Unretained(this)));
}
void DataSinkReceiver::ShutDown() {
« no previous file with comments | « device/serial/data_sink_receiver.h ('k') | device/serial/data_source_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698