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); |