Index: third_party/WebKit/Source/modules/push_messaging/PushController.cpp |
diff --git a/third_party/WebKit/Source/modules/push_messaging/PushController.cpp b/third_party/WebKit/Source/modules/push_messaging/PushController.cpp |
index 5fb8c8ead3bc060375e8a6c9c1cb8ff49e0cce36..539f485e106ac6b2569d7c15b518c2784c6cf3df 100644 |
--- a/third_party/WebKit/Source/modules/push_messaging/PushController.cpp |
+++ b/third_party/WebKit/Source/modules/push_messaging/PushController.cpp |
@@ -9,11 +9,8 @@ |
namespace blink { |
-PushController::PushController(WebPushClient* client) : m_client(client) {} |
- |
-PushController* PushController::create(WebPushClient* client) { |
- return new PushController(client); |
-} |
+PushController::PushController(LocalFrame& frame, WebPushClient* client) |
+ : Supplement<LocalFrame>(frame), m_client(client) {} |
WebPushClient& PushController::clientFrom(LocalFrame* frame) { |
PushController* controller = PushController::from(frame); |
@@ -29,7 +26,7 @@ const char* PushController::supplementName() { |
void providePushControllerTo(LocalFrame& frame, WebPushClient* client) { |
PushController::provideTo(frame, PushController::supplementName(), |
- PushController::create(client)); |
+ new PushController(frame, client)); |
} |
} // namespace blink |