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

Unified Diff: device/generic_sensor/sensor_impl.cc

Issue 2326913003: Privatize StrongBinding lifetime management (Closed)
Patch Set: rebase Created 4 years, 3 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/generic_sensor/sensor_impl.h ('k') | device/generic_sensor/sensor_provider_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/generic_sensor/sensor_impl.cc
diff --git a/device/generic_sensor/sensor_impl.cc b/device/generic_sensor/sensor_impl.cc
index c666aec8958a9d6a8a8988623f1a81e5175d2b90..4b7966974bbd1c61372151f4ad54ba9a81d38645 100644
--- a/device/generic_sensor/sensor_impl.cc
+++ b/device/generic_sensor/sensor_impl.cc
@@ -6,13 +6,12 @@
#include <utility>
+#include "mojo/public/cpp/bindings/strong_binding.h"
+
namespace device {
-SensorImpl::SensorImpl(mojo::InterfaceRequest<Sensor> request,
- scoped_refptr<PlatformSensor> sensor)
- : sensor_(std::move(sensor)),
- binding_(this, std::move(request)),
- suspended_(false) {
+SensorImpl::SensorImpl(scoped_refptr<PlatformSensor> sensor)
+ : sensor_(std::move(sensor)), suspended_(false) {
sensor_->AddClient(this);
}
« no previous file with comments | « device/generic_sensor/sensor_impl.h ('k') | device/generic_sensor/sensor_provider_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698