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

Unified Diff: chrome/browser/extensions/extension_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
Index: chrome/browser/extensions/extension_special_storage_policy.cc
diff --git a/chrome/browser/extensions/extension_special_storage_policy.cc b/chrome/browser/extensions/extension_special_storage_policy.cc
index 076273c99b74b1e9d80abe06b553f43dbc2a605c..2990f6daba22ebbd7cc532a7d0fa29f35508d4d3 100644
--- a/chrome/browser/extensions/extension_special_storage_policy.cc
+++ b/chrome/browser/extensions/extension_special_storage_policy.cc
@@ -136,6 +136,10 @@ bool ExtensionSpecialStoragePolicy::HasIsolatedStorage(const GURL& origin) {
return isolated_extensions_.Contains(origin);
}
+bool ExtensionSpecialStoragePolicy::IsStorageDurable(const GURL& origin) {
+ return cookie_settings_->IsStorageDurable(origin);
+}
+
bool ExtensionSpecialStoragePolicy::NeedsProtection(
const extensions::Extension* extension) {
return extension->is_hosted_app() && !extension->from_bookmark();

Powered by Google App Engine
This is Rietveld 408576698