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 07b62136020de5fa1de6b82357c7932892d87802..037a440cfc3dcb79daf22ec703dc9923596b1bd5 100644 |
--- a/content/browser/renderer_host/render_process_host_impl.cc |
+++ b/content/browser/renderer_host/render_process_host_impl.cc |
@@ -597,9 +597,20 @@ void RenderProcessHostImpl::CreateMessageFilters() { |
channel_->AddFilter(new DOMStorageMessageFilter( |
GetID(), |
storage_partition_impl_->GetDOMStorageContext())); |
+ { |
+ FileAPIMessageFilter* file_api_message_filter = new FileAPIMessageFilter( |
+ GetID(), |
+ storage_partition_impl_->GetURLRequestContext(), |
+ storage_partition_impl_->GetFileSystemContext(), |
+ ChromeBlobStorageContext::GetFor(browser_context), |
+ StreamContext::GetFor(browser_context)); |
+ channel_->AddFilter(file_api_message_filter); |
channel_->AddFilter(new IndexedDBDispatcherHost( |
GetID(), |
- storage_partition_impl_->GetIndexedDBContext())); |
+ storage_partition_impl_->GetURLRequestContext(), |
+ storage_partition_impl_->GetIndexedDBContext(), |
+ file_api_message_filter)); |
+ } |
if (IsGuest()) { |
if (!g_browser_plugin_geolocation_context.Get().get()) { |
g_browser_plugin_geolocation_context.Get() = |
@@ -632,12 +643,6 @@ void RenderProcessHostImpl::CreateMessageFilters() { |
#endif |
channel_->AddFilter(new SpeechRecognitionDispatcherHost( |
GetID(), storage_partition_impl_->GetURLRequestContext())); |
- channel_->AddFilter(new FileAPIMessageFilter( |
- GetID(), |
- storage_partition_impl_->GetURLRequestContext(), |
- storage_partition_impl_->GetFileSystemContext(), |
- ChromeBlobStorageContext::GetFor(browser_context), |
- StreamContext::GetFor(browser_context))); |
channel_->AddFilter(new OrientationMessageFilter()); |
channel_->AddFilter(new FileUtilitiesMessageFilter(GetID())); |
channel_->AddFilter(new MimeRegistryMessageFilter()); |