diff options
author | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-04 19:58:31 +0000 |
---|---|---|
committer | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-04 19:58:31 +0000 |
commit | 10c9340596534c8923c3bb04f0d39613c1ad7ee4 (patch) | |
tree | 3178ad2f61682c90ef4fc5b7fad052a03619d1d8 /chrome/browser/net/chrome_url_request_context.cc | |
parent | c14b4028b1e0a79827e27777e74d4e5281be1f78 (diff) | |
download | chromium_src-10c9340596534c8923c3bb04f0d39613c1ad7ee4.zip chromium_src-10c9340596534c8923c3bb04f0d39613c1ad7ee4.tar.gz chromium_src-10c9340596534c8923c3bb04f0d39613c1ad7ee4.tar.bz2 |
Some preliminary ground work for respecting the "Content Settings" in the appcache, and an implementation of the "ClearLocalState" function.
TEST=none
BUG=34344,32719
Review URL: http://codereview.chromium.org/565012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38124 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/chrome_url_request_context.cc')
-rw-r--r-- | chrome/browser/net/chrome_url_request_context.cc | 9 |
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; } |