summaryrefslogtreecommitdiffstats
path: root/webkit/quota
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/quota')
-rw-r--r--webkit/quota/quota_manager.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/webkit/quota/quota_manager.cc b/webkit/quota/quota_manager.cc
index bd00f60..16b44ef 100644
--- a/webkit/quota/quota_manager.cc
+++ b/webkit/quota/quota_manager.cc
@@ -377,6 +377,12 @@ void QuotaManager::GetUsageAndQuota(
return;
}
+ if (type == kStorageTypeUnknown) {
+ // Quota only supports temporary/persistent types.
+ callback->Run(kQuotaErrorNotSupported, 0, 0);
+ return;
+ }
+
std::string host = net::GetHostOrSpecFromURL(origin);
UsageAndQuotaDispatcherTaskMap::iterator found =
usage_and_quota_dispatchers_.find(std::make_pair(host, type));