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..621af755346cb23a48cc44ff35c94954e4578b55 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 CacheStorageIndex& cache_index) { |
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& metadata : cache_index.ordered_cache_metadata()) |
+ string16s.push_back(base::UTF8ToUTF16(metadata.name)); |
Send(new CacheStorageMsg_CacheStorageKeysSuccess(thread_id, request_id, |
string16s)); |
} |