Index: components/offline_items_collection/core/offline_content_aggregator.cc |
diff --git a/components/offline_items_collection/core/offline_content_aggregator.cc b/components/offline_items_collection/core/offline_content_aggregator.cc |
index acbfd5a130b4ed2daf7b2eeb38d6e895071695ef..19eaa574efe84bda5c98a87a569c7a2172fb004a 100644 |
--- a/components/offline_items_collection/core/offline_content_aggregator.cc |
+++ b/components/offline_items_collection/core/offline_content_aggregator.cc |
@@ -145,6 +145,20 @@ OfflineContentAggregator::GetAllItems() { |
return items; |
} |
+void OfflineContentAggregator::GetVisualsForItem( |
+ const ContentId& id, |
+ const VisualsCallback& callback) { |
+ auto it = providers_.find(id.name_space); |
+ |
+ if (it == providers_.end()) { |
+ base::ThreadTaskRunnerHandle::Get()->PostTask( |
+ FROM_HERE, base::Bind(callback, id, nullptr)); |
+ return; |
+ } |
+ |
+ it->second->GetVisualsForItem(id, callback); |
+} |
+ |
void OfflineContentAggregator::AddObserver( |
OfflineContentProvider::Observer* observer) { |
DCHECK(observer); |