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

Unified Diff: content/browser/cache_storage/cache_storage_dispatcher_host.cc

Issue 2416713002: Write out CacheStorageCache size to index file. (Closed)
Patch Set: Added out-of-date index tests. Created 4 years, 2 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: content/browser/cache_storage/cache_storage_dispatcher_host.cc
diff --git a/content/browser/cache_storage/cache_storage_dispatcher_host.cc b/content/browser/cache_storage/cache_storage_dispatcher_host.cc
index ba584c7a92e80be723e322dc118d4a33d638fb85..9d82d7f945c93fd608700ad556f44a4262cdf5e1 100644
--- a/content/browser/cache_storage/cache_storage_dispatcher_host.cc
+++ b/content/browser/cache_storage/cache_storage_dispatcher_host.cc
@@ -389,10 +389,10 @@ void CacheStorageDispatcherHost::OnCacheStorageDeleteCallback(
void CacheStorageDispatcherHost::OnCacheStorageKeysCallback(
int thread_id,
int request_id,
- const std::vector<std::string>& strings) {
+ const std::list<CacheStorage::CacheInfo>& cache_info) {
std::vector<base::string16> string16s;
- for (size_t i = 0, max = strings.size(); i < max; ++i)
- string16s.push_back(base::UTF8ToUTF16(strings[i]));
+ for (const auto& info : cache_info)
+ string16s.push_back(base::UTF8ToUTF16(info.name));
Send(new CacheStorageMsg_CacheStorageKeysSuccess(thread_id, request_id,
string16s));
}

Powered by Google App Engine
This is Rietveld 408576698