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

Unified Diff: chrome/browser/extensions/mock_extension_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: Code review comments (tiny). 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: chrome/browser/extensions/mock_extension_special_storage_policy.cc
diff --git a/chrome/browser/extensions/mock_extension_special_storage_policy.cc b/chrome/browser/extensions/mock_extension_special_storage_policy.cc
index dddf49fe7cd0f028840667a15806ae1487e54f3b..7cf86cd74eb8129865091a17441f387b05901a79 100644
--- a/chrome/browser/extensions/mock_extension_special_storage_policy.cc
+++ b/chrome/browser/extensions/mock_extension_special_storage_policy.cc
@@ -4,7 +4,9 @@
#include "chrome/browser/extensions/mock_extension_special_storage_policy.h"
-MockExtensionSpecialStoragePolicy::MockExtensionSpecialStoragePolicy() {}
+MockExtensionSpecialStoragePolicy::MockExtensionSpecialStoragePolicy()
+ : ExtensionSpecialStoragePolicy(NULL) {}
+
MockExtensionSpecialStoragePolicy::~MockExtensionSpecialStoragePolicy() {}
bool MockExtensionSpecialStoragePolicy::IsStorageProtected(const GURL& origin) {
@@ -15,6 +17,11 @@ bool MockExtensionSpecialStoragePolicy::IsStorageUnlimited(const GURL& origin) {
return unlimited_.find(origin) != unlimited_.end();
}
+bool MockExtensionSpecialStoragePolicy::IsStorageSessionOnly(
+ const GURL& origin) {
+ return session_only_.find(origin) != session_only_.end();
+}
+
bool MockExtensionSpecialStoragePolicy::IsFileHandler(
const std::string& extension_id) {
return file_handlers_.find(extension_id) != file_handlers_.end();
« no previous file with comments | « chrome/browser/extensions/mock_extension_special_storage_policy.h ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698