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

Unified Diff: webkit/quota/mock_special_storage_policy.cc

Issue 7619010: Session-only local storage cleared on exit. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 4 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: webkit/quota/mock_special_storage_policy.cc
diff --git a/webkit/quota/mock_special_storage_policy.cc b/webkit/quota/mock_special_storage_policy.cc
index 0de3dd0630818fe62f298c207c207f6a9361bb7a..fd0760904edcbabed82652ab7bdd1cf1d38768eb 100644
--- a/webkit/quota/mock_special_storage_policy.cc
+++ b/webkit/quota/mock_special_storage_policy.cc
@@ -17,6 +17,10 @@ bool MockSpecialStoragePolicy::IsStorageUnlimited(const GURL& origin) {
return unlimited_.find(origin) != unlimited_.end();
}
+bool MockSpecialStoragePolicy::IsStorageSessionOnly(const GURL& origin) {
+ return session_only_.find(origin) != session_only_.end();
+}
+
bool MockSpecialStoragePolicy::IsFileHandler(const std::string& extension_id) {
return file_handlers_.find(extension_id) != file_handlers_.end();
}

Powered by Google App Engine
This is Rietveld 408576698