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

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

Issue 2727733004: [IndexedDB] Closing mojo connections when renderer quits (Closed)
Patch Set: comments 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 b9f0d3a60af187b13faaef4751778f0f7eba4cf5..64a8536833705070081eeb176530892c5a82825c 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -725,6 +725,7 @@ RenderProcessHostImpl::RenderProcessHostImpl(
push_messaging_manager_.reset(new PushMessagingManager(
GetID(), storage_partition_impl_->GetServiceWorkerContext()));
+ AddObserver(indexed_db_factory_.get());
#if defined(OS_MACOSX)
if (BootstrapSandboxManager::ShouldEnable())
AddObserver(BootstrapSandboxManager::GetInstance());
@@ -1192,7 +1193,8 @@ void RenderProcessHostImpl::RegisterMojoInterfaces() {
auto registry = base::MakeUnique<service_manager::BinderRegistry>();
channel_->AddAssociatedInterfaceForIOThread(
- base::Bind(&IndexedDBDispatcherHost::AddBinding, indexed_db_factory_));
+ base::Bind(&IndexedDBDispatcherHost::AddBinding,
+ base::Unretained(indexed_db_factory_.get())));
#if defined(OS_ANDROID)
AddUIThreadInterface(
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.h ('k') | mojo/public/cpp/bindings/associated_binding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698