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

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

Issue 2828953002: [IndexedDB] Hold referenced to IDB::put blobs in the IDBRequest (Closed)
Patch Set: Created 3 years, 8 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 e779da3670b2c0ce4a7944ebba76613d91d1be91..07d3c9d6ff37121cb285c9b088f019309712533c 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -1115,9 +1115,14 @@ void RenderProcessHostImpl::CreateMessageFilters() {
GetID(), storage_partition_impl_->GetURLRequestContext(),
storage_partition_impl_->GetFileSystemContext(),
blob_storage_context.get(), StreamContext::GetFor(browser_context)));
- AddFilter(new BlobDispatcherHost(
- GetID(), blob_storage_context,
- make_scoped_refptr(storage_partition_impl_->GetFileSystemContext())));
+
+ scoped_refptr<BlobDispatcherHost> blob_dispatcher_host =
+ new BlobDispatcherHost(
+ GetID(), blob_storage_context,
+ make_scoped_refptr(storage_partition_impl_->GetFileSystemContext()));
+ AddFilter(blob_dispatcher_host.get());
+ indexed_db_factory_->SetBlobDispatcherHost(std::move(blob_dispatcher_host));
+
AddFilter(new FileUtilitiesMessageFilter(GetID()));
AddFilter(
new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker()));

Powered by Google App Engine
This is Rietveld 408576698