diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-17 19:26:58 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-17 19:26:58 +0000 |
commit | af6699372a232fce9d6f8484d64d128150392f66 (patch) | |
tree | 159fb9e8f4c9449da9e8293f52fbd00f2a2b8019 /chrome/browser/io_thread.cc | |
parent | b52a3f33699d38c121e59b4f01338e4c8e592f02 (diff) | |
download | chromium_src-af6699372a232fce9d6f8484d64d128150392f66.zip chromium_src-af6699372a232fce9d6f8484d64d128150392f66.tar.gz chromium_src-af6699372a232fce9d6f8484d64d128150392f66.tar.bz2 |
Move cleanup that happens on IO thread destruction to content, so that not every embedder has to know to do it. This also allows us to hide some of these functions from embedders.
BUG=98716
Review URL: https://chromiumcodereview.appspot.com/9221008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117934 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/io_thread.cc')
-rw-r--r-- | chrome/browser/io_thread.cc | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc index d1b9f30..6ad01f6 100644 --- a/chrome/browser/io_thread.cc +++ b/chrome/browser/io_thread.cc @@ -32,8 +32,6 @@ #include "chrome/browser/prefs/pref_service.h" #include "chrome/common/chrome_switches.h" #include "chrome/common/pref_names.h" -#include "content/browser/gpu/gpu_process_host.h" -#include "content/browser/in_process_webkit/indexed_db_key_utility_client.h" #include "content/public/browser/browser_thread.h" #include "content/public/common/content_client.h" #include "content/public/common/url_fetcher.h" @@ -478,27 +476,14 @@ void IOThread::CleanUp() { delete sdch_manager_; sdch_manager_ = NULL; - // Step 1: Kill all things that might be holding onto - // net::URLRequest/net::URLRequestContexts. - #if defined(USE_NSS) net::ShutdownOCSP(); #endif // defined(USE_NSS) - // Destroy all URLRequests started by URLFetchers. - content::URLFetcher::CancelAll(); - - IndexedDBKeyUtilityClient::Shutdown(); - - // If any child processes are still running, terminate them and - // and delete the BrowserChildProcessHost instances to release whatever - // IO thread only resources they are referencing. - BrowserChildProcessHost::TerminateAll(); - system_url_request_context_getter_ = NULL; - // Step 2: Release objects that the net::URLRequestContext could have been - // pointing to. + // Release objects that the net::URLRequestContext could have been pointing + // to. // This must be reset before the ChromeNetLog is destroyed. network_change_observer_.reset(); @@ -508,9 +493,6 @@ void IOThread::CleanUp() { delete globals_; globals_ = NULL; - // net::URLRequest instances must NOT outlive the IO thread. - base::debug::LeakTracker<net::URLRequest>::CheckForLeaks(); - base::debug::LeakTracker<SystemURLRequestContextGetter>::CheckForLeaks(); } |