Index: Source/web/WebLocalFrameImpl.cpp |
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp |
index 2263ec5fae6e8dea577a89d033c4b4f6936dd946..29d679cea19eb70f711694adc53d8f81f36d86bd 100644 |
--- a/Source/web/WebLocalFrameImpl.cpp |
+++ b/Source/web/WebLocalFrameImpl.cpp |
@@ -151,6 +151,7 @@ |
#include "modules/geolocation/GeolocationController.h" |
#include "modules/notifications/NotificationController.h" |
#include "modules/notifications/NotificationPermissionClient.h" |
+#include "modules/push_messaging/PushController.h" |
#include "modules/screen_orientation/ScreenOrientationController.h" |
#include "platform/TraceEvent.h" |
#include "platform/UserGestureIndicator.h" |
@@ -1582,8 +1583,10 @@ void WebLocalFrameImpl::setCoreFrame(PassRefPtrWillBeRawPtr<LocalFrame> frame) |
// FIXME: we shouldn't add overhead to every frame by registering these objects when they're not used. |
if (m_frame) { |
OwnPtr<NotificationPresenterImpl> notificationPresenter = adoptPtr(new NotificationPresenterImpl()); |
- if (m_client) |
+ if (m_client) { |
notificationPresenter->initialize(m_client->notificationPresenter()); |
+ providePushControllerTo(*m_frame, m_client->pushClient()); |
+ } |
provideNotification(*m_frame, notificationPresenter.release()); |
provideNotificationPermissionClientTo(*m_frame, NotificationPermissionClientImpl::create()); |