Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1342)

Unified Diff: Source/web/WebViewImpl.cpp

Issue 152763002: DO NOT REVIEW Bindings and plumbing for push messaging API. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Flip flag to experimental. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index bfa58740ba092e1c5f066fa3e5c83eb3814519c0..560882d5617c13681ee277b6c57e7b08c13c81cf 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -120,6 +120,7 @@
#include "modules/geolocation/GeolocationController.h"
#include "modules/indexeddb/InspectorIndexedDBAgent.h"
#include "modules/notifications/NotificationController.h"
+#include "modules/pushmessaging/PushController.h"
#include "painting/ContinuousPainter.h"
#include "platform/ContextMenu.h"
#include "platform/ContextMenuItem.h"
@@ -408,6 +409,9 @@ WebViewImpl::WebViewImpl(WebViewClient* client)
m_validationMessage = ValidationMessageClientImpl::create(*this);
m_page->setValidationMessageClient(m_validationMessage.get());
provideWorkerGlobalScopeProxyProviderTo(*m_page, WorkerGlobalScopeProxyProviderImpl::create());
+ if (m_client)
+ providePushControllerTo(*m_page, m_client->webPushClient());
Peter Beverloo 2014/03/10 13:59:28 Perhaps you could check the value of the runtime f
Michael van Ouwerkerk 2014/03/10 15:12:04 Done.
+
m_page->makeOrdinary();

Powered by Google App Engine
This is Rietveld 408576698