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

Unified Diff: chrome/browser/io_thread.cc

Issue 12546016: Remove the Extensions URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 7 years, 4 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/io_thread.cc
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index d096e4330121055a0c96b3ffd58738db7e072fb6..e714d49acf355ee4cbfbed8f5b81f94963b73490 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -44,12 +44,12 @@
#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/cookie_store_factory.h"
#include "net/base/host_mapping_rules.h"
#include "net/base/net_util.h"
#include "net/base/network_time_notifier.h"
#include "net/base/sdch_manager.h"
#include "net/cert/cert_verifier.h"
-#include "net/cookies/cookie_monster.h"
#include "net/dns/host_cache.h"
#include "net/dns/host_resolver.h"
#include "net/dns/mapped_host_resolver.h"
@@ -533,7 +533,8 @@ void IOThread::InitAsync() {
globals_->proxy_script_fetcher_proxy_service.reset(
net::ProxyService::CreateDirectWithNetLog(net_log_));
// In-memory cookie store.
- globals_->system_cookie_store = new net::CookieMonster(NULL, NULL);
+ globals_->system_cookie_store =
+ content::CreateCookieStore(content::CookieStoreConfig());
// In-memory server bound cert store.
globals_->system_server_bound_cert_service.reset(
new net::ServerBoundCertService(
@@ -672,12 +673,6 @@ void IOThread::CleanUp() {
}
void IOThread::InitializeNetworkOptions(const CommandLine& command_line) {
- if (command_line.HasSwitch(switches::kEnableFileCookies)) {
- // Enable cookie storage for file:// URLs. Must do this before the first
- // Profile (and therefore the first CookieMonster) is created.
- net::CookieMonster::EnableFileScheme();
- }
-
// Only handle use-spdy command line flags if "spdy.disabled" preference is
// not disabled via policy.
if (!is_spdy_disabled_by_policy_) {

Powered by Google App Engine
This is Rietveld 408576698