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

Unified Diff: services/video_capture/public/cpp/device_to_feedback_observer_adapter.cc

Issue 2824883005: [Mojo Video Capture] Stop service when last client disconnects. (Closed)
Patch Set: Incorporate suggestions from PatchSet 1 Created 3 years, 8 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: services/video_capture/public/cpp/device_to_feedback_observer_adapter.cc
diff --git a/services/video_capture/public/cpp/device_to_feedback_observer_adapter.cc b/services/video_capture/public/cpp/device_to_feedback_observer_adapter.cc
index ad842a7b9576e5e814fe9e53772cadad259c216b..3811443c989ef6e1709bec16c3116f1b8bd7e419 100644
--- a/services/video_capture/public/cpp/device_to_feedback_observer_adapter.cc
+++ b/services/video_capture/public/cpp/device_to_feedback_observer_adapter.cc
@@ -7,14 +7,14 @@
namespace video_capture {
DeviceToFeedbackObserverAdapter::DeviceToFeedbackObserverAdapter(
- mojom::DevicePtr device)
+ mojom::DevicePtr* device)
: device_(std::move(device)) {}
DeviceToFeedbackObserverAdapter::~DeviceToFeedbackObserverAdapter() = default;
void DeviceToFeedbackObserverAdapter::OnUtilizationReport(int frame_feedback_id,
double utilization) {
- device_->OnReceiverReportingUtilization(frame_feedback_id, utilization);
+ (*device_)->OnReceiverReportingUtilization(frame_feedback_id, utilization);
}
} // namespace video_capture

Powered by Google App Engine
This is Rietveld 408576698