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

Unified Diff: content/public/test/mock_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: content/public/test/mock_special_storage_policy.cc
diff --git a/content/public/test/mock_special_storage_policy.cc b/content/public/test/mock_special_storage_policy.cc
index ff3c6c44be160d8638d2167d96a8b2d2aae25c7e..08475360293d178a9fc83461aa0f665624247323 100644
--- a/content/public/test/mock_special_storage_policy.cc
+++ b/content/public/test/mock_special_storage_policy.cc
@@ -38,6 +38,10 @@ bool MockSpecialStoragePolicy::HasSessionOnlyOrigins() {
return !session_only_.empty();
}
+bool MockSpecialStoragePolicy::IsStorageDurable(const GURL& origin) {
+ return ContainsKey(durable_, origin);
+}
+
MockSpecialStoragePolicy::~MockSpecialStoragePolicy() {}
} // namespace content
« no previous file with comments | « content/public/test/mock_special_storage_policy.h ('k') | extensions/shell/browser/shell_special_storage_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698