| Index: components/reading_list/core/reading_list_model_impl.cc
|
| diff --git a/components/reading_list/core/reading_list_model_impl.cc b/components/reading_list/core/reading_list_model_impl.cc
|
| index 6b60704e02f11a3c790b722dfa90821377776d92..d1ed193f0b5534f8bfaaf070f9ccf966ac2886bf 100644
|
| --- a/components/reading_list/core/reading_list_model_impl.cc
|
| +++ b/components/reading_list/core/reading_list_model_impl.cc
|
| @@ -461,6 +461,28 @@ void ReadingListModelImpl::SetEntryDistilledState(
|
| }
|
| }
|
|
|
| +void ReadingListModelImpl::SetContentSuggestionsExtra(
|
| + const GURL& url,
|
| + const reading_list::ContentSuggestionsExtra& extra) {
|
| + DCHECK(CalledOnValidThread());
|
| + DCHECK(loaded());
|
| + ReadingListEntry* entry = GetMutableEntryFromURL(url);
|
| + if (!entry) {
|
| + return;
|
| + }
|
| +
|
| + for (ReadingListModelObserver& observer : observers_) {
|
| + observer.ReadingListWillUpdateEntry(this, url);
|
| + }
|
| + entry->SetContentSuggestionsExtra(extra);
|
| + if (storage_layer_) {
|
| + storage_layer_->SaveEntry(*entry);
|
| + }
|
| + for (ReadingListModelObserver& observer : observers_) {
|
| + observer.ReadingListDidApplyChanges(this);
|
| + }
|
| +}
|
| +
|
| std::unique_ptr<ReadingListModel::ScopedReadingListBatchUpdate>
|
| ReadingListModelImpl::CreateBatchToken() {
|
| return base::MakeUnique<ReadingListModelImpl::ScopedReadingListBatchUpdate>(
|
|
|