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

Unified Diff: components/offline_items_collection/core/offline_content_aggregator.cc

Issue 2777063008: Connect BackgroundFetch to the OfflineItemCollection
Patch Set: Fixed incognito check and added tests Created 3 years, 8 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: 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);

Powered by Google App Engine
This is Rietveld 408576698