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

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

Issue 1008723006: Remove HTTP cache Record/Playback support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « chrome/browser/net/cookie_store_util.cc ('k') | chrome/browser/ui/browser_window_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3add9ee8417a4e8da98e5e3cd667947cc6cb5eb0..d64039e917f40b2aa221595083b4c581f0e6d2d4 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -510,19 +510,6 @@ void ProfileImplIOData::InitializeInternal(
scoped_refptr<net::CookieStore> cookie_store = NULL;
net::ChannelIDService* channel_id_service = NULL;
- if (chrome_browser_net::ShouldUseInMemoryCookiesAndCache()) {
- // Don't use existing cookies and use an in-memory store.
- using content::CookieStoreConfig;
- cookie_store = content::CreateCookieStore(CookieStoreConfig(
- base::FilePath(),
- CookieStoreConfig::EPHEMERAL_SESSION_COOKIES,
- NULL,
- profile_params->cookie_monster_delegate.get()));
- // Don't use existing channel ids and use an in-memory store.
- channel_id_service = new net::ChannelIDService(
- new net::DefaultChannelIDStore(NULL),
- base::WorkerPool::GetTaskRunner(true));
- }
// TODO(vadimt): Remove ScopedTracker below once crbug.com/436671 is fixed.
tracked_objects::ScopedTracker tracking_profile5(
@@ -590,12 +577,6 @@ void ProfileImplIOData::InitializeInternal(
main_cache->InitializeInfiniteCache(lazy_params_->infinite_cache_path);
- if (chrome_browser_net::ShouldUseInMemoryCookiesAndCache()) {
- main_cache->set_mode(
- chrome_browser_net::IsCookieRecordMode() ?
- net::HttpCache::RECORD : net::HttpCache::PLAYBACK);
- }
-
main_http_factory_.reset(main_cache.release());
main_context->set_http_transaction_factory(main_http_factory_.get());
@@ -736,15 +717,6 @@ net::URLRequestContext* ProfileImplIOData::InitializeAppRequestContext(
scoped_refptr<net::CookieStore> cookie_store = NULL;
if (partition_descriptor.in_memory) {
cookie_store = content::CreateCookieStore(content::CookieStoreConfig());
- } else if (chrome_browser_net::ShouldUseInMemoryCookiesAndCache()) {
- // Don't use existing cookies and use an in-memory store.
- // TODO(creis): We should have a cookie delegate for notifying the cookie
- // extensions API, but we need to update it to understand isolated apps
- // first.
- cookie_store = content::CreateCookieStore(content::CookieStoreConfig());
- app_http_cache->set_mode(
- chrome_browser_net::IsCookieRecordMode() ?
- net::HttpCache::RECORD : net::HttpCache::PLAYBACK);
}
// Use an app-specific cookie store.
« no previous file with comments | « chrome/browser/net/cookie_store_util.cc ('k') | chrome/browser/ui/browser_window_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698