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 3a14ba69de92e115c757f4117ce040f1d704ed77..0d34497d5e235b4c33034136c2aa228216ae15b5 100644 |
--- a/content/browser/renderer_host/render_process_host_impl.cc |
+++ b/content/browser/renderer_host/render_process_host_impl.cc |
@@ -877,7 +877,8 @@ void RenderProcessHostImpl::CreateMessageFilters() { |
storage_partition_impl_->GetDOMStorageContext(), |
storage_partition_impl_->GetCacheStorageContext())); |
AddFilter(render_message_filter.get()); |
- AddFilter(new RenderFrameMessageFilter( |
+ |
+ render_frame_message_filter_ = new RenderFrameMessageFilter( |
GetID(), |
#if defined(ENABLE_PLUGINS) |
PluginServiceImpl::GetInstance(), |
@@ -886,7 +887,9 @@ void RenderProcessHostImpl::CreateMessageFilters() { |
#endif |
GetBrowserContext(), |
request_context.get(), |
- widget_helper_.get())); |
+ widget_helper_.get()); |
+ AddFilter(render_frame_message_filter_.get()); |
+ |
BrowserContext* browser_context = GetBrowserContext(); |
ResourceContext* resource_context = browser_context->GetResourceContext(); |