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

Unified Diff: extensions/shell/browser/shell_special_storage_policy.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
« no previous file with comments | « extensions/shell/browser/shell_special_storage_policy.h ('k') | storage/browser/quota/quota_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/shell/browser/shell_special_storage_policy.cc
diff --git a/extensions/shell/browser/shell_special_storage_policy.cc b/extensions/shell/browser/shell_special_storage_policy.cc
index 5ed1b50f4253725f8601048e12593438d3039d01..d43c71bfdd786986958a68e26f4346c77cc604fa 100644
--- a/extensions/shell/browser/shell_special_storage_policy.cc
+++ b/extensions/shell/browser/shell_special_storage_policy.cc
@@ -20,6 +20,12 @@ bool ShellSpecialStoragePolicy::IsStorageUnlimited(const GURL& origin) {
return true;
}
+bool ShellSpecialStoragePolicy::IsStorageDurable(const GURL& origin) {
+ // The plan is to forbid extensions from acquiring the durable storage
+ // permission because they can specify 'unlimitedStorage' in the manifest.
+ return false;
+}
+
bool ShellSpecialStoragePolicy::IsStorageSessionOnly(const GURL& origin) {
return false;
}
« no previous file with comments | « extensions/shell/browser/shell_special_storage_policy.h ('k') | storage/browser/quota/quota_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698