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

Unified Diff: content/child/blink_platform_impl.cc

Issue 1904163002: Move Web Notifications to use Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@skbitmap-blink
Patch Set: resolves the promise Created 4 years, 8 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: content/child/blink_platform_impl.cc
diff --git a/content/child/blink_platform_impl.cc b/content/child/blink_platform_impl.cc
index fbd0731fa71294f78308d11eede5a148a471ae75..5f3b15344fa39f7f745bbef675425c580156636a 100644
--- a/content/child/blink_platform_impl.cc
+++ b/content/child/blink_platform_impl.cc
@@ -43,8 +43,6 @@
#include "content/child/child_thread_impl.h"
#include "content/child/content_child_helpers.h"
#include "content/child/geofencing/web_geofencing_provider_impl.h"
-#include "content/child/notifications/notification_dispatcher.h"
-#include "content/child/notifications/notification_manager.h"
#include "content/child/permissions/permission_dispatcher.h"
#include "content/child/permissions/permission_dispatcher_thread_proxy.h"
#include "content/child/push_messaging/push_dispatcher.h"
@@ -384,8 +382,6 @@ void BlinkPlatformImpl::InternalInit() {
geofencing_provider_.reset(new WebGeofencingProviderImpl(
ChildThreadImpl::current()->thread_safe_sender()));
thread_safe_sender_ = ChildThreadImpl::current()->thread_safe_sender();
- notification_dispatcher_ =
- ChildThreadImpl::current()->notification_dispatcher();
push_dispatcher_ = ChildThreadImpl::current()->push_dispatcher();
permission_client_.reset(new PermissionDispatcher(
ChildThreadImpl::current()->service_registry()));
@@ -862,16 +858,6 @@ blink::WebGeofencingProvider* BlinkPlatformImpl::geofencingProvider() {
return geofencing_provider_.get();
}
-blink::WebNotificationManager*
-BlinkPlatformImpl::notificationManager() {
- if (!thread_safe_sender_.get() || !notification_dispatcher_.get())
- return nullptr;
-
- return NotificationManager::ThreadSpecificInstance(
- thread_safe_sender_.get(),
- notification_dispatcher_.get());
-}
-
blink::WebPushProvider* BlinkPlatformImpl::pushProvider() {
if (!thread_safe_sender_.get() || !push_dispatcher_.get())
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698