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.cc38
1 files changed, 0 insertions, 38 deletions
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index 85c7e2a..4d716da 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -401,30 +401,6 @@ void IOThread::InitNetworkPredictor(
startup_urls, referral_list, preconnect_enabled));
}
-void IOThread::RegisterURLRequestContextGetter(
- ChromeURLRequestContextGetter* url_request_context_getter) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
- std::list<ChromeURLRequestContextGetter*>::const_iterator it =
- std::find(url_request_context_getters_.begin(),
- url_request_context_getters_.end(),
- url_request_context_getter);
- DCHECK(it == url_request_context_getters_.end());
- url_request_context_getters_.push_back(url_request_context_getter);
-}
-
-void IOThread::UnregisterURLRequestContextGetter(
- ChromeURLRequestContextGetter* url_request_context_getter) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
- std::list<ChromeURLRequestContextGetter*>::iterator it =
- std::find(url_request_context_getters_.begin(),
- url_request_context_getters_.end(),
- url_request_context_getter);
- DCHECK(it != url_request_context_getters_.end());
- // This does not scale, but we shouldn't have many URLRequestContextGetters in
- // the first place, so this should be fine.
- url_request_context_getters_.erase(it);
-}
-
void IOThread::ChangedToOnTheRecord() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
message_loop()->PostTask(
@@ -532,20 +508,6 @@ void IOThread::CleanUp() {
// IO thread only resources they are referencing.
BrowserChildProcessHost::TerminateAll();
- std::list<ChromeURLRequestContextGetter*> url_request_context_getters;
- url_request_context_getters.swap(url_request_context_getters_);
- for (std::list<ChromeURLRequestContextGetter*>::iterator it =
- url_request_context_getters.begin();
- it != url_request_context_getters.end(); ++it) {
- ChromeURLRequestContextGetter* getter = *it;
- // Stop all pending certificate provenance check uploads
- net::DnsCertProvenanceChecker* checker =
- getter->GetURLRequestContext()->dns_cert_checker();
- if (checker)
- checker->Shutdown();
- getter->ReleaseURLRequestContext();
- }
-
system_url_request_context_getter_ = NULL;
// Step 2: Release objects that the net::URLRequestContext could have been