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

Unified Diff: components/offline_pages/downloads/download_ui_adapter.cc

Issue 2318933004: [Offline pages] Fixing crash happening when 2 pages get saved about the same time (Closed)
Patch Set: Addressing CR feedback Created 4 years, 3 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
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarTablet.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/offline_pages/downloads/download_ui_adapter.cc
diff --git a/components/offline_pages/downloads/download_ui_adapter.cc b/components/offline_pages/downloads/download_ui_adapter.cc
index 1ef3534dba10ccb046ae8e1894f32ae606d9ff24..eff4b50c40cdfe771080aa63f3c7d4d610c7d873 100644
--- a/components/offline_pages/downloads/download_ui_adapter.cc
+++ b/components/offline_pages/downloads/download_ui_adapter.cc
@@ -198,8 +198,6 @@ void DownloadUIAdapter::OnOfflinePagesChanged(
items_[guid] = base::MakeUnique<ItemInfo>(page);
added_guids.push_back(guid);
}
- // Only one added page
- CHECK(added_guids.size() <= 1);
for (auto& guid : added_guids) {
const DownloadUIItem& item = *(items_.find(guid)->second->ui_item.get());
FOR_EACH_OBSERVER(Observer, observers_, ItemAdded(item));
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarTablet.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698