Index: Source/modules/notifications/NotificationController.h |
diff --git a/Source/modules/notifications/NotificationController.h b/Source/modules/notifications/NotificationController.h |
index 6022bca0a0701ce88817f3da9878c4c3b0e327d6..da353f6308c09ba90d07a2d22cc362834e4e1445 100644 |
--- a/Source/modules/notifications/NotificationController.h |
+++ b/Source/modules/notifications/NotificationController.h |
@@ -39,22 +39,22 @@ class NotificationController FINAL : public Supplement<LocalFrame> { |
public: |
virtual ~NotificationController(); |
- static PassOwnPtr<NotificationController> create(NotificationClient*); |
+ static PassOwnPtr<NotificationController> create(PassOwnPtr<NotificationClient>); |
static const char* supplementName(); |
static NotificationController* from(LocalFrame* frame) { return static_cast<NotificationController*>(Supplement<LocalFrame>::from(frame, supplementName())); } |
static NotificationClient* clientFrom(LocalFrame*); |
- NotificationClient* client() { return m_client; } |
+ NotificationClient* client() { return m_client.get(); } |
virtual void trace(Visitor*) OVERRIDE { } |
private: |
- explicit NotificationController(NotificationClient*); |
+ explicit NotificationController(PassOwnPtr<NotificationClient>); |
- NotificationClient* m_client; |
+ OwnPtr<NotificationClient> m_client; |
}; |
-void provideNotification(LocalFrame&, NotificationClient*); |
+void provideNotification(LocalFrame&, PassOwnPtr<NotificationClient>); |
} // namespace WebCore |