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

Unified Diff: content/browser/device_sensors/device_sensor_host.h

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
Index: content/browser/device_sensors/device_sensor_host.h
diff --git a/content/browser/device_sensors/device_sensor_host.h b/content/browser/device_sensors/device_sensor_host.h
index 2332140196a4185cdc34d45fa712d62bb5e95cb1..e7fceb3f255bea1e9327f9010c816f5d0d9259a0 100644
--- a/content/browser/device_sensors/device_sensor_host.h
+++ b/content/browser/device_sensors/device_sensor_host.h
@@ -12,7 +12,6 @@
#include "device/sensors/public/interfaces/motion.mojom.h"
#include "device/sensors/public/interfaces/orientation.mojom.h"
#include "mojo/public/cpp/bindings/interface_request.h"
-#include "mojo/public/cpp/bindings/strong_binding.h"
namespace content {
@@ -26,7 +25,7 @@ class DeviceSensorHost : public MojoInterface {
~DeviceSensorHost() override;
private:
- explicit DeviceSensorHost(mojo::InterfaceRequest<MojoInterface> request);
+ DeviceSensorHost();
void StartPolling(
const typename MojoInterface::StartPollingCallback& callback) override;
@@ -34,8 +33,6 @@ class DeviceSensorHost : public MojoInterface {
bool is_started_;
- mojo::StrongBinding<MojoInterface> binding_;
-
base::ThreadChecker thread_checker_;
DISALLOW_COPY_AND_ASSIGN(DeviceSensorHost);

Powered by Google App Engine
This is Rietveld 408576698