summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/chrome_url_request_context.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/net/chrome_url_request_context.cc')
-rw-r--r--chrome/browser/net/chrome_url_request_context.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/chrome/browser/net/chrome_url_request_context.cc b/chrome/browser/net/chrome_url_request_context.cc
index a8349e8..0fe660b 100644
--- a/chrome/browser/net/chrome_url_request_context.cc
+++ b/chrome/browser/net/chrome_url_request_context.cc
@@ -188,11 +188,9 @@ ChromeURLRequestContext* FactoryForOriginal::Create() {
context->set_cookie_policy(
new ChromeCookiePolicy(host_content_settings_map_));
- // Create a new AppCacheService (issues fetches through the
- // main URLRequestContext that we just created).
+ // Create a new AppCacheService.
context->set_appcache_service(
- new ChromeAppCacheService(profile_dir_path_, false));
- context->appcache_service()->set_request_context(context);
+ new ChromeAppCacheService(profile_dir_path_, context));
#if defined(OS_LINUX)
// TODO(ukai): find a better way to set the URLRequestContext for OCSP.
@@ -280,8 +278,7 @@ ChromeURLRequestContext* FactoryForOffTheRecord::Create() {
// Create a separate AppCacheService for OTR mode.
context->set_appcache_service(
- new ChromeAppCacheService(profile_dir_path_, true));
- context->appcache_service()->set_request_context(context);
+ new ChromeAppCacheService(profile_dir_path_, context));
return context;
}