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

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

Issue 189253002: Implement ServiceWorker::postMessage() [Chromium] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reup 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: 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 05b823ed2a1d6d32c0455feb420938af4e21e45b..4efed7e73ded496480917ab7a80d997673278300 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -674,12 +674,6 @@ void RenderProcessHostImpl::CreateMessageFilters() {
AddFilter(new IndexedDBDispatcherHost(
storage_partition_impl_->GetIndexedDBContext()));
- scoped_refptr<ServiceWorkerDispatcherHost> service_worker_filter =
- new ServiceWorkerDispatcherHost(GetID());
- service_worker_filter->Init(
- storage_partition_impl_->GetServiceWorkerContext());
- AddFilter(service_worker_filter);
-
if (IsGuest()) {
if (!g_browser_plugin_geolocation_context.Get().get()) {
g_browser_plugin_geolocation_context.Get() =
@@ -756,6 +750,12 @@ void RenderProcessHostImpl::CreateMessageFilters() {
base::Unretained(widget_helper_.get())));
AddFilter(message_port_message_filter_);
+ scoped_refptr<ServiceWorkerDispatcherHost> service_worker_filter =
+ new ServiceWorkerDispatcherHost(GetID(), message_port_message_filter_);
+ service_worker_filter->Init(
+ storage_partition_impl_->GetServiceWorkerContext());
+ AddFilter(service_worker_filter);
+
AddFilter(new WorkerMessageFilter(
GetID(),
resource_context,

Powered by Google App Engine
This is Rietveld 408576698