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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 58113002: Tear down IndexedDB dispatcher before WebKit is torn down (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 266276e18f14dd912364ca7830ce100e61fa4bd6..646bf181b18616da5cbdc663f2ee13ce621ad2bf 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -450,6 +450,10 @@ void RenderThreadImpl::Shutdown() {
input_event_filter_ = NULL;
}
+ // Ramp down IDB before we ramp down WebKit (and V8), since IDB classes might
+ // hold pointers to V8 objects (e.g., via pending requests).
+ main_thread_indexed_db_dispatcher_.reset();
+
if (webkit_platform_support_)
WebKit::shutdown();
« no previous file with comments | « content/browser/indexed_db/indexed_db_browsertest.cc ('k') | content/test/data/indexeddb/shutdown_with_requests.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698