summaryrefslogtreecommitdiffstats
path: root/chrome/browser/appcache
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-02 12:09:35 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-02 12:09:35 +0000
commitdcfb5c0db3c898441e6d1e1f38781a488816a0e4 (patch)
treea446debcf6430918e63ae049e46fbbb220274558 /chrome/browser/appcache
parenta40c8dbc97b4a8f8499b703300da65fe053e95c2 (diff)
downloadchromium_src-dcfb5c0db3c898441e6d1e1f38781a488816a0e4.zip
chromium_src-dcfb5c0db3c898441e6d1e1f38781a488816a0e4.tar.gz
chromium_src-dcfb5c0db3c898441e6d1e1f38781a488816a0e4.tar.bz2
Add a "session only" policy to the content settings.
session only is treated as allow, but the cookies will expire after this session (the actual code to expire non-html cookies will follow). BUG=47049 TEST=none Review URL: http://codereview.chromium.org/2858018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51522 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/appcache')
-rw-r--r--chrome/browser/appcache/chrome_appcache_service.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/appcache/chrome_appcache_service.cc b/chrome/browser/appcache/chrome_appcache_service.cc
index 1939a16..c2e41a0 100644
--- a/chrome/browser/appcache/chrome_appcache_service.cc
+++ b/chrome/browser/appcache/chrome_appcache_service.cc
@@ -82,8 +82,8 @@ bool ChromeAppCacheService::CanLoadAppCache(const GURL& manifest_url) {
ContentSetting setting = host_contents_settings_map_->GetContentSetting(
manifest_url, CONTENT_SETTINGS_TYPE_COOKIES);
DCHECK(setting != CONTENT_SETTING_DEFAULT);
- return setting == CONTENT_SETTING_ALLOW ||
- setting == CONTENT_SETTING_ASK; // we don't prompt for read access
+ // We don't prompt for read access.
+ return setting != CONTENT_SETTING_BLOCK;
}
int ChromeAppCacheService::CanCreateAppCache(