Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(773)

Unified Diff: storage/browser/quota/quota_database.cc

Issue 1229933007: Make quota logic obey durable storage permission (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@3_top_durable
Patch Set: fix extensions_browsertests compile Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: storage/browser/quota/quota_database.cc
diff --git a/storage/browser/quota/quota_database.cc b/storage/browser/quota/quota_database.cc
index 85e0000645c35c8d3dac722c82d997a69ebcb6c2..b7b4ad31eeea7cc46fc403b6f6e88d6eeeba77f7 100644
--- a/storage/browser/quota/quota_database.cc
+++ b/storage/browser/quota/quota_database.cc
@@ -343,7 +343,8 @@ bool QuotaDatabase::GetLRUOrigin(
if (exceptions.find(url) != exceptions.end())
continue;
if (special_storage_policy &&
- special_storage_policy->IsStorageUnlimited(url))
+ (special_storage_policy->IsStorageDurable(url) ||
+ special_storage_policy->IsStorageUnlimited(url)))
continue;
*origin = url;
return true;
« no previous file with comments | « extensions/shell/browser/shell_special_storage_policy.cc ('k') | storage/browser/quota/special_storage_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698