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

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: add TODO Created 8 years, 2 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
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 faba3535fa634f92fc430102620364147e664686..66190d6fcd1ca8913c7423a56bbfd41e9be35e24 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -14,6 +14,7 @@
#include "chrome/browser/custom_handlers/protocol_handler_registry.h"
#include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h"
#include "chrome/browser/io_thread.h"
+#include "chrome/browser/net/chrome_http_user_agent_settings.h"
erikwright (departed) 2012/10/24 13:14:33 no longer used, right?
#include "chrome/browser/net/chrome_net_log.h"
#include "chrome/browser/net/clear_on_exit_policy.h"
#include "chrome/browser/net/connect_interceptor.h"
@@ -51,12 +52,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
@@ -65,22 +60,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();

Powered by Google App Engine
This is Rietveld 408576698