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

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

Issue 2934153002: Add virtual ProfileIOData methods related to URLRequestContext creation. (Closed)
Patch Set: . Created 3 years, 6 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 | « no previous file | chrome/browser/profiles/profile_impl_io_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/off_the_record_profile_io_data.cc
diff --git a/chrome/browser/profiles/off_the_record_profile_io_data.cc b/chrome/browser/profiles/off_the_record_profile_io_data.cc
index f04aef7a5bb75236237584f060f3447b64a27b5b..1730a96a49e420e8677a72bdebe8898ec5095de1 100644
--- a/chrome/browser/profiles/off_the_record_profile_io_data.cc
+++ b/chrome/browser/profiles/off_the_record_profile_io_data.cc
@@ -32,7 +32,6 @@
#include "extensions/features/features.h"
#include "net/http/http_cache.h"
#include "net/http/http_network_session.h"
-#include "net/http/http_server_properties_impl.h"
#include "net/ssl/channel_id_service.h"
#include "net/ssl/default_channel_id_store.h"
#include "net/url_request/url_request_context_storage.h"
@@ -199,33 +198,6 @@ void OffTheRecordProfileIOData::InitializeInternal(
net::URLRequestContextStorage* main_context_storage =
main_request_context_storage();
- // For incognito, we use the default non-persistent HttpServerPropertiesImpl.
- main_context_storage->set_http_server_properties(
- base::MakeUnique<net::HttpServerPropertiesImpl>());
-
- // For incognito, we use a non-persistent channel ID store.
- main_context_storage->set_channel_id_service(
- base::MakeUnique<net::ChannelIDService>(
- new net::DefaultChannelIDStore(nullptr)));
-
- using content::CookieStoreConfig;
- main_context_storage->set_cookie_store(CreateCookieStore(CookieStoreConfig(
- base::FilePath(), CookieStoreConfig::EPHEMERAL_SESSION_COOKIES, NULL,
- profile_params->cookie_monster_delegate.get())));
-
- main_context->cookie_store()->SetChannelIDServiceID(
- main_context->channel_id_service()->GetUniqueID());
-
- main_context_storage->set_http_network_session(
- CreateHttpNetworkSession(*profile_params));
- main_context_storage->set_http_transaction_factory(
- CreateMainHttpFactory(main_context_storage->http_network_session(),
- net::HttpCache::DefaultBackend::InMemory(0)));
-
- std::unique_ptr<net::URLRequestJobFactoryImpl> main_job_factory(
- new net::URLRequestJobFactoryImpl());
-
- InstallProtocolHandlers(main_job_factory.get(), protocol_handlers);
main_context_storage->set_job_factory(SetUpJobFactoryDefaults(
std::move(main_job_factory), std::move(request_interceptors),
std::move(profile_params->protocol_handler_interceptor),
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_impl_io_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698