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

Unified Diff: chrome/browser/browser_shutdown.cc

Issue 6268014: Release all DataSources before the main thread goes away. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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: chrome/browser/browser_shutdown.cc
diff --git a/chrome/browser/browser_shutdown.cc b/chrome/browser/browser_shutdown.cc
index 2849261adaff5429dffdda7c0ead6443439fe8d3..5e906c5e75520967e7b9ae59b0721d3094f0ffb4 100644
--- a/chrome/browser/browser_shutdown.cc
+++ b/chrome/browser/browser_shutdown.cc
@@ -255,6 +255,11 @@ void Shutdown() {
chromeos::CrosLibrary::Get()->GetLoginLibrary()->StopSession("");
}
#endif
+
+ // Clean up data sources before the UI thread is removed.
+ ChromeURLDataManager* data_manager = ChromeURLDataManager::GetInstance();
+ if (data_manager)
+ data_manager->RemoveAllDataSources();
}
void ReadLastShutdownFile(
« no previous file with comments | « no previous file | chrome/browser/dom_ui/chrome_url_data_manager.h » ('j') | chrome/browser/dom_ui/chrome_url_data_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698