summaryrefslogtreecommitdiffstats
path: root/chrome/browser/io_thread.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/io_thread.cc')
-rw-r--r--chrome/browser/io_thread.cc12
1 files changed, 5 insertions, 7 deletions
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index 8772ffd..5a7fb24 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -35,6 +35,7 @@
#include "net/ocsp/nss_ocsp.h"
#endif // defined(USE_NSS)
#include "net/proxy/proxy_script_fetcher_impl.h"
+#include "net/url_request/url_request_context.h"
namespace {
@@ -356,6 +357,10 @@ void IOThread::CleanUp() {
globals_ = NULL;
BrowserProcessSubThread::CleanUp();
+
+ // URLRequest instances must NOT outlive the IO thread.
+ base::LeakTracker<URLRequest>::CheckForLeaks();
+ base::LeakTracker<URLRequestContext>::CheckForLeaks();
}
void IOThread::CleanUpAfterMessageLoopDestruction() {
@@ -368,13 +373,6 @@ void IOThread::CleanUpAfterMessageLoopDestruction() {
// This will delete the |notification_service_|. Make sure it's done after
// anything else can reference it.
BrowserProcessSubThread::CleanUpAfterMessageLoopDestruction();
-
- // 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::LeakTracker<URLRequest>::CheckForLeaks();
}
net::HttpAuthHandlerFactory* IOThread::CreateDefaultAuthHandlerFactory(