summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_working_set.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/appcache/appcache_working_set.cc')
-rw-r--r--webkit/appcache/appcache_working_set.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/webkit/appcache/appcache_working_set.cc b/webkit/appcache/appcache_working_set.cc
index 9b67942..2b61ea3 100644
--- a/webkit/appcache/appcache_working_set.cc
+++ b/webkit/appcache/appcache_working_set.cc
@@ -17,6 +17,7 @@ AppCacheWorkingSet::~AppCacheWorkingSet() {
}
void AppCacheWorkingSet::AddCache(AppCache* cache) {
+ DCHECK(cache->cache_id() != kNoCacheId);
int64 cache_id = cache->cache_id();
DCHECK(caches_.find(cache_id) == caches_.end());
caches_.insert(CacheMap::value_type(cache_id, cache));
@@ -37,6 +38,7 @@ void AppCacheWorkingSet::RemoveGroup(AppCacheGroup* group) {
}
void AppCacheWorkingSet::AddResponseInfo(AppCacheResponseInfo* info) {
+ DCHECK(info->response_id() != kNoResponseId);
int64 response_id = info->response_id();
DCHECK(response_infos_.find(response_id) == response_infos_.end());
response_infos_.insert(ResponseInfoMap::value_type(response_id, info));