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

Unified Diff: content/child/child_thread.cc

Issue 19641008: Implement ChildThread::shutdown and clear members that have refs into blink (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years, 5 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 | « content/child/child_thread.h ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_thread.cc
diff --git a/content/child/child_thread.cc b/content/child/child_thread.cc
index 859d2b2643e4463151504f0e1990e00f4fa880b1..05650ade06f688cd69040d437d44b6c508cdb013 100644
--- a/content/child/child_thread.cc
+++ b/content/child/child_thread.cc
@@ -195,6 +195,12 @@ ChildThread::~ChildThread() {
g_lazy_tls.Pointer()->Set(NULL);
}
+void ChildThread::Shutdown() {
+ // Delete objects that hold references to blink so derived classes can
+ // safely shutdown blink in their Shutdown implementation.
+ file_system_dispatcher_.reset();
+}
+
void ChildThread::OnChannelConnected(int32 peer_pid) {
channel_connected_factory_.InvalidateWeakPtrs();
}
« no previous file with comments | « content/child/child_thread.h ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698