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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2004643002: Implement BroadcastChannel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert to mojo interface of PS4 to have less logic in renderer Created 4 years, 6 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/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index 85c1ca0085339f3028beffa11bad20dfeb6f27a2..88b240eceac7b14ec7a141ca8704b505c63a79c2 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -46,6 +46,7 @@
#include "cc/base/switches.h"
#include "components/scheduler/common/scheduler_switches.h"
#include "components/tracing/common/tracing_switches.h"
+#include "components/webmessaging/broadcast_channel_service.h"
#include "content/browser/appcache/appcache_dispatcher_host.h"
#include "content/browser/appcache/chrome_appcache_service.h"
#include "content/browser/background_sync/background_sync_service_impl.h"
@@ -1089,6 +1090,10 @@ void RenderProcessHostImpl::RegisterMojoServices() {
base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService,
base::Unretained(this)));
+ mojo_application_host_->service_registry()->AddService(base::Bind(
+ &webmessaging::BroadcastChannelService::Connect,
+ base::Unretained(storage_partition_impl_->GetBroadcastChannelService())));
+
mojo_application_host_->service_registry()->AddService(
base::Bind(&MimeRegistryImpl::Create),
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE));

Powered by Google App Engine
This is Rietveld 408576698