From 02a5cdbe64dc598efaa25b06a8de02ffe8ea676b Mon Sep 17 00:00:00 2001 From: "michaeln@chromium.org" Date: Wed, 11 Aug 2010 20:47:32 +0000 Subject: Provide a profile.GetAppCacheService() accessor and add two helper methods to ChromeAppCacheService to override the default quota for an origin. BUG=49993 TESTS=existing tests apply Review URL: http://codereview.chromium.org/2819091 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55773 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/appcache/appcache_storage.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'webkit/appcache') diff --git a/webkit/appcache/appcache_storage.cc b/webkit/appcache/appcache_storage.cc index 52767ad..445b965 100644 --- a/webkit/appcache/appcache_storage.cc +++ b/webkit/appcache/appcache_storage.cc @@ -75,7 +75,8 @@ void AppCacheStorage::LoadResponseInfo( void AppCacheStorage::SetOriginQuotaInMemory(const GURL& origin, int64 quota) { DCHECK(quota >= 0); DCHECK(origin == origin.GetOrigin()); - in_memory_quotas_[origin] = quota; + if (IsSchemeSupported(origin)) + in_memory_quotas_[origin] = quota; } void AppCacheStorage::ResetOriginQuotaInMemory(const GURL& origin) { -- cgit v1.1