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

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: android webview init fix merged in. 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 d2745b3148316620a4bde35bac99abf9b1ce5b5b..bb5fbd5f6712d0e98613179485802c8fdae83e2e 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -45,12 +45,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"
@@ -534,7 +534,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(
@@ -677,12 +678,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