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

Unified Diff: chrome/browser/profiles/profile_impl_io_data.cc

Issue 10918279: Provide mutable members of UrlRequestContext via pure-virtual interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable test for chrome_frame_net_tests Created 8 years, 1 month 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
Index: chrome/browser/profiles/profile_impl_io_data.cc
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc
index 2a539271da80b2aaa6c6cd669838b6505a1eb27e..65e882264b6906b76e56a4628849eaef083b4e12 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -51,13 +51,6 @@ ProfileImplIOData::Handle::Handle(Profile* profile)
ProfileImplIOData::Handle::~Handle() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- if (main_request_context_getter_)
- main_request_context_getter_->CleanupOnUIThread();
- if (media_request_context_getter_)
- media_request_context_getter_->CleanupOnUIThread();
- if (extensions_request_context_getter_)
- extensions_request_context_getter_->CleanupOnUIThread();
-
if (io_data_->predictor_.get() != NULL) {
// io_data_->predictor_ might be NULL if Init() was never called
// (i.e. we shut down before ProfileImpl::DoFinalInit() got called).
@@ -65,22 +58,6 @@ ProfileImplIOData::Handle::~Handle() {
io_data_->predictor_->ShutdownOnUIThread(user_prefs);
}
- // Clean up all isolated app request contexts.
- for (ChromeURLRequestContextGetterMap::iterator iter =
- app_request_context_getter_map_.begin();
- iter != app_request_context_getter_map_.end();
- ++iter) {
- iter->second->CleanupOnUIThread();
- }
-
- // Clean up all isolated media request contexts.
- for (ChromeURLRequestContextGetterMap::iterator iter =
- isolated_media_request_context_getter_map_.begin();
- iter != isolated_media_request_context_getter_map_.end();
- ++iter) {
- iter->second->CleanupOnUIThread();
- }
-
if (io_data_->http_server_properties_manager())
io_data_->http_server_properties_manager()->ShutdownOnUIThread();
io_data_->ShutdownOnUIThread();
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_io_data.cc ('k') | chrome/browser/profiles/profile_io_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698