Index: third_party/WebKit/Source/core/frame/ScreenOrientationController.h |
diff --git a/third_party/WebKit/Source/core/frame/ScreenOrientationController.h b/third_party/WebKit/Source/core/frame/ScreenOrientationController.h |
index 7c80e301e600ee4ca792e045eb7983004ceb64e4..fbe0e2746a9450ff4f5e8449e385eedffb083866 100644 |
--- a/third_party/WebKit/Source/core/frame/ScreenOrientationController.h |
+++ b/third_party/WebKit/Source/core/frame/ScreenOrientationController.h |
@@ -19,7 +19,11 @@ class WebLockOrientationCallback; |
// module will implement and add a provider for. |
// Callers of ScreenOrientationController::from() should always assume the |
// returned pointer can be nullptr. |
-class CORE_EXPORT ScreenOrientationController : public Supplement<LocalFrame> { |
+class CORE_EXPORT ScreenOrientationController |
+ : public GarbageCollectedFinalized<ScreenOrientationController>, |
+ public Supplement<LocalFrame> { |
+ USING_GARBAGE_COLLECTED_MIXIN(ScreenOrientationController); |
+ |
public: |
virtual ~ScreenOrientationController() = default; |
@@ -38,6 +42,7 @@ class CORE_EXPORT ScreenOrientationController : public Supplement<LocalFrame> { |
DECLARE_VIRTUAL_TRACE(); |
protected: |
+ explicit ScreenOrientationController(LocalFrame&); |
// To be called by an ScreenOrientationController to register its |
// implementation. |
static void provideTo(LocalFrame&, ScreenOrientationController*); |