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

Unified Diff: device/serial/data_sink_receiver.h

Issue 1554443003: Stop linking in the old Mojo EDK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge and fix new flaky test Created 4 years, 11 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/device_tests.gyp ('k') | device/serial/data_sink_receiver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/data_sink_receiver.h
diff --git a/device/serial/data_sink_receiver.h b/device/serial/data_sink_receiver.h
index 3f2220f7eb7a7783962f3997a5bc669b5449aea2..534003550c97100e8eff48eecd204f544e15a002 100644
--- a/device/serial/data_sink_receiver.h
+++ b/device/serial/data_sink_receiver.h
@@ -78,8 +78,6 @@ class DataSinkReceiver : public base::RefCounted<DataSinkReceiver>,
// Reports a fatal error to the client and shuts down.
void DispatchFatalError();
- mojo::Binding<serial::DataSink> binding_;
-
// The callback to call when there is data ready to read.
const ReadyCallback ready_callback_;
@@ -103,6 +101,8 @@ class DataSinkReceiver : public base::RefCounted<DataSinkReceiver>,
// Whether we have encountered a fatal error and shut down.
bool shut_down_;
+ mojo::Binding<serial::DataSink> binding_;
+
base::WeakPtrFactory<DataSinkReceiver> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(DataSinkReceiver);
« no previous file with comments | « device/device_tests.gyp ('k') | device/serial/data_sink_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698