Index: components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc |
diff --git a/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc b/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc |
index d6366ef811e77df3bbb9d908d1526a613b7ceeb0..3fe02dbc2c48fd41f30e46226d94c1720939523f 100644 |
--- a/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc |
+++ b/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc |
@@ -127,6 +127,23 @@ void ReadingListSuggestionsProvider::ReadingListModelBeingDeleted( |
reading_list_model_ = nullptr; |
} |
+void ReadingListSuggestionsProvider::ReadingListDidApplyChanges( |
+ ReadingListModel* model) { |
+ DCHECK(model == reading_list_model_); |
+ |
+ if (model->IsPerformingBatchUpdates()) |
+ return; |
+ |
+ FetchReadingListInternal(); |
+} |
+ |
+void ReadingListSuggestionsProvider::ReadingListModelCompletedBatchUpdates( |
+ const ReadingListModel* model) { |
+ DCHECK(model == reading_list_model_); |
+ |
+ FetchReadingListInternal(); |
+} |
+ |
void ReadingListSuggestionsProvider::FetchReadingListInternal() { |
if (!reading_list_model_) |
return; |