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 231e10b44f1916751e021d182e16a07690a7a8c1..e6b83d460487bf7ddb050a68ee6c774da56287c7 100644 |
--- a/content/browser/renderer_host/render_process_host_impl.cc |
+++ b/content/browser/renderer_host/render_process_host_impl.cc |
@@ -75,6 +75,7 @@ |
#include "content/browser/gpu/gpu_process_host.h" |
#include "content/browser/gpu/shader_disk_cache.h" |
#include "content/browser/histogram_message_filter.h" |
+#include "content/browser/indexed_db/database_factory_impl.h" |
#include "content/browser/indexed_db/indexed_db_context_impl.h" |
#include "content/browser/indexed_db/indexed_db_dispatcher_host.h" |
#include "content/browser/loader/resource_message_filter.h" |
@@ -1094,10 +1095,16 @@ void RenderProcessHostImpl::CreateMessageFilters() { |
AddFilter(new ClipboardMessageFilter(blob_storage_context)); |
AddFilter(new DOMStorageMessageFilter( |
storage_partition_impl_->GetDOMStorageContext())); |
- AddFilter(new IndexedDBDispatcherHost( |
+ |
+ idb_dispatcher_host_ = new IndexedDBDispatcherHost( |
GetID(), storage_partition_impl_->GetURLRequestContext(), |
storage_partition_impl_->GetIndexedDBContext(), |
- blob_storage_context.get())); |
+ blob_storage_context.get()); |
+ idb_database_factory_.reset( |
+ new DatabaseFactoryImpl(storage_partition_impl_->GetURLRequestContext(), |
+ storage_partition_impl_->GetIndexedDBContext(), |
+ GetID(), idb_dispatcher_host_)); |
+ AddFilter(idb_dispatcher_host_.get()); |
#if defined(ENABLE_WEBRTC) |
peer_connection_tracker_host_ = new PeerConnectionTrackerHost( |