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

Unified Diff: content/child/blink_platform_impl.cc

Issue 2690203003: Convert push_messaging IPC msgs into mojo interfaces (Closed)
Patch Set: code rebase Created 3 years, 10 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
« no previous file with comments | « content/child/blink_platform_impl.h ('k') | content/child/child_thread_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/blink_platform_impl.cc
diff --git a/content/child/blink_platform_impl.cc b/content/child/blink_platform_impl.cc
index 7c6dfda8dbe3b236e86e401a012c9ad968530544..b2b964a690c121637c09c5e9385c0e7f1378518e 100644
--- a/content/child/blink_platform_impl.cc
+++ b/content/child/blink_platform_impl.cc
@@ -41,7 +41,6 @@
#include "content/child/content_child_helpers.h"
#include "content/child/notifications/notification_dispatcher.h"
#include "content/child/notifications/notification_manager.h"
-#include "content/child/push_messaging/push_dispatcher.h"
#include "content/child/push_messaging/push_provider.h"
#include "content/child/thread_safe_sender.h"
#include "content/child/web_url_loader_impl.h"
@@ -365,7 +364,6 @@ void BlinkPlatformImpl::InternalInit() {
thread_safe_sender_ = ChildThreadImpl::current()->thread_safe_sender();
notification_dispatcher_ =
ChildThreadImpl::current()->notification_dispatcher();
- push_dispatcher_ = ChildThreadImpl::current()->push_dispatcher();
}
}
@@ -735,11 +733,7 @@ BlinkPlatformImpl::notificationManager() {
}
blink::WebPushProvider* BlinkPlatformImpl::pushProvider() {
- if (!thread_safe_sender_.get() || !push_dispatcher_.get())
- return nullptr;
-
- return PushProvider::ThreadSpecificInstance(thread_safe_sender_.get(),
- push_dispatcher_.get());
+ return PushProvider::ThreadSpecificInstance(main_thread_task_runner_);
}
WebThemeEngine* BlinkPlatformImpl::themeEngine() {
« no previous file with comments | « content/child/blink_platform_impl.h ('k') | content/child/child_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698