Skip to content

Commit

Permalink
Make destructor public in Observer
Browse files Browse the repository at this point in the history
Make destructor public in CameraPrivacySwitchObserver.
This is needed in order to use the type with unique_ptr.
The abstractness of the class is sufficiently assured by the existing
virtual abstract method.

Change-Id: Ibaa0610ec8b548bf65e287a65f92833f10f4aecc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3783035
Commit-Queue: Wei Lee <wtlee@chromium.org>
Auto-Submit: Jan Láník <janlanik@google.com>
Commit-Queue: Jan Láník <janlanik@google.com>
Reviewed-by: Wei Lee <wtlee@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1032462}
  • Loading branch information
Jan Lanik authored and Chromium LUCI CQ committed Aug 8, 2022
1 parent 66370cf commit 189cf51
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions media/capture/video/chromeos/camera_hal_dispatcher_impl.h
Expand Up @@ -106,11 +106,10 @@ class FailedCameraHalServerCallbacks final
class CAPTURE_EXPORT CameraPrivacySwitchObserver
: public base::CheckedObserver {
public:
~CameraPrivacySwitchObserver() override = default;

virtual void OnCameraPrivacySwitchStatusChanged(
cros::mojom::CameraPrivacySwitchState state) = 0;

protected:
~CameraPrivacySwitchObserver() override = default;
};

// The CameraHalDispatcherImpl hosts and waits on the unix domain socket
Expand Down

0 comments on commit 189cf51

Please sign in to comment.