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 19eaa574efe84bda5c98a87a569c7a2172fb004a..42aa3dd9796851b7be388c74d7179c14d3a25422 100644 |
--- a/components/offline_items_collection/core/offline_content_aggregator.cc |
+++ b/components/offline_items_collection/core/offline_content_aggregator.cc |
@@ -51,6 +51,8 @@ void OfflineContentAggregator::RegisterProvider( |
void OfflineContentAggregator::UnregisterProvider( |
const std::string& name_space) { |
auto provider_it = providers_.find(name_space); |
+ if (provider_it == providers_.end()) |
David Trainor- moved to gerrit
2017/04/19 22:45:12
Ty!
|
+ return; |
OfflineContentProvider* provider = provider_it->second; |
providers_.erase(provider_it); |