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

Unified Diff: chrome/browser/io_thread.cc

Issue 6602047: Kill CleanUpAfterMessageLoopDestruction. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« chrome/browser/browser_process_sub_thread.cc ('K') | « chrome/browser/io_thread.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/io_thread.cc
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index 7839925f46b4d5a39b40a0d656aabd021a290b4c..a8cd62ecdfb3030a0c3dec5abbde990498d855a6 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -439,20 +439,12 @@ void IOThread::CleanUp() {
delete globals_;
globals_ = NULL;
- BrowserProcessSubThread::CleanUp();
-}
+ // net::URLRequest instances must NOT outlive the IO thread.
+ base::debug::LeakTracker<net::URLRequest>::CheckForLeaks();
eroman 2011/03/02 02:23:31 What has changed to make this safe? If I remember
willchan no longer on Chromium 2011/03/02 05:31:16 http://code.google.com/p/chromium/issues/detail?id
-void IOThread::CleanUpAfterMessageLoopDestruction() {
// This will delete the |notification_service_|. Make sure it's done after
// anything else can reference it.
- BrowserProcessSubThread::CleanUpAfterMessageLoopDestruction();
-
- // net::URLRequest instances must NOT outlive the IO thread.
- //
- // To allow for URLRequests to be deleted from
- // MessageLoop::DestructionObserver this check has to happen after CleanUp
- // (which runs before DestructionObservers).
- base::debug::LeakTracker<net::URLRequest>::CheckForLeaks();
+ BrowserProcessSubThread::CleanUp();
}
// static
« chrome/browser/browser_process_sub_thread.cc ('K') | « chrome/browser/io_thread.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698