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

Unified Diff: chrome/renderer/render_thread.cc

Issue 573044: Merge 37594 - Wait for the DB thread to finish posting tasks to the main thre... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/307/src/
Patch Set: Created 10 years, 10 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
« no previous file with comments | « no previous file | chrome/renderer/renderer_web_database_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_thread.cc
===================================================================
--- chrome/renderer/render_thread.cc (revision 38290)
+++ chrome/renderer/render_thread.cc (working copy)
@@ -210,10 +210,15 @@
}
RenderThread::~RenderThread() {
+ // Wait for all databases to be closed.
+ if (renderer_web_database_observer_.get())
+ renderer_web_database_observer_->WaitForAllDatabasesToClose();
+
// Shutdown in reverse of the initialization order.
RemoveFilter(devtools_agent_filter_.get());
RemoveFilter(db_message_filter_.get());
db_message_filter_ = NULL;
+
if (webkit_client_.get())
WebKit::shutdown();
« no previous file with comments | « no previous file | chrome/renderer/renderer_web_database_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698