| 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..4f648debdba86e2edbfcd431114dd58fe731f96c 100644
|
| --- a/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc
|
| +++ b/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc
|
| @@ -127,9 +127,24 @@ void ReadingListSuggestionsProvider::ReadingListModelBeingDeleted(
|
| reading_list_model_ = nullptr;
|
| }
|
|
|
| +void ReadingListSuggestionsProvider::ReadingListDidApplyChanges(
|
| + ReadingListModel* model) {
|
| + DCHECK(model == reading_list_model_);
|
| +
|
| + FetchReadingListInternal();
|
| +}
|
| +
|
| +void ReadingListSuggestionsProvider::ReadingListModelCompletedBatchUpdates(
|
| + const ReadingListModel* model) {
|
| + DCHECK(model == reading_list_model_);
|
| +
|
| + FetchReadingListInternal();
|
| +}
|
| +
|
| void ReadingListSuggestionsProvider::FetchReadingListInternal() {
|
| - if (!reading_list_model_)
|
| + if (!reading_list_model_ || reading_list_model_->IsPerformingBatchUpdates()) {
|
| return;
|
| + }
|
|
|
| DCHECK(reading_list_model_->loaded());
|
| std::vector<const ReadingListEntry*> entries;
|
|
|