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

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

Issue 2727733004: [IndexedDB] Closing mojo connections when renderer quits (Closed)
Patch Set: tests running Created 3 years, 9 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 b1a238db5ab529c4be1d6324ca1e393f357ce979..df0d071812f8786f81d55af1f2d6ac0c03d5f251 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -1200,7 +1200,9 @@ void RenderProcessHostImpl::RegisterMojoInterfaces() {
service_manager::mojom::kServiceManager_ConnectorSpec);
channel_->AddAssociatedInterfaceForIOThread(
- base::Bind(&IndexedDBDispatcherHost::AddBinding, indexed_db_factory_));
+ base::Bind(&IndexedDBDispatcherHost::AddBinding,
+ base::Unretained(indexed_db_factory_.get())));
+ AddObserver(indexed_db_factory_.get());
#if defined(OS_ANDROID)
AddUIThreadInterface(registry.get(),

Powered by Google App Engine
This is Rietveld 408576698