mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Fixes redness on speedracer. sr=dougt
This commit is contained in:
parent
9f4ba86ebe
commit
f78db68af7
@ -3430,9 +3430,12 @@ nsHTTPChannel::SetCacheAsFile(PRBool value)
|
||||
{
|
||||
if (!mCacheEntry)
|
||||
return NS_ERROR_NOT_AVAILABLE;
|
||||
return mCacheEntry->SetStoragePolicy(value ?
|
||||
nsICache::STORE_ON_DISK_AS_FILE :
|
||||
nsICache::STORE_ANYWHERE);
|
||||
nsCacheStoragePolicy policy;
|
||||
if (value)
|
||||
policy = nsICache::STORE_ON_DISK_AS_FILE;
|
||||
else
|
||||
policy = nsICache::STORE_ANYWHERE;
|
||||
return mCacheEntry->SetStoragePolicy(policy);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
Loading…
Reference in New Issue
Block a user