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(); |