| Index: ios/chrome/browser/reading_list/reading_list_model_impl.cc
|
| diff --git a/ios/chrome/browser/reading_list/reading_list_model_impl.cc b/ios/chrome/browser/reading_list/reading_list_model_impl.cc
|
| index c3e068d65f0249a30a6ce1c36dbd381cdf56d260..61abcbce50f9bcdcefa805f0a3f3bfd374cfaac4 100644
|
| --- a/ios/chrome/browser/reading_list/reading_list_model_impl.cc
|
| +++ b/ios/chrome/browser/reading_list/reading_list_model_impl.cc
|
| @@ -158,6 +158,20 @@ void ReadingListModelImpl::MarkReadByURL(const GURL& url) {
|
| ReadingListDidApplyChanges(this));
|
| }
|
|
|
| +ReadingListModel::EntryState ReadingListModelImpl::EntryStateByURL(
|
| + const GURL& url) {
|
| + ReadingListEntry entry(url, std::string());
|
| + auto result = std::find(unread_.begin(), unread_.end(), entry);
|
| + if (result != unread_.end())
|
| + return UNREAD;
|
| +
|
| + result = std::find(read_.begin(), read_.end(), entry);
|
| + if (result != read_.end())
|
| + return READ;
|
| +
|
| + return NOT_PRESENT;
|
| +}
|
| +
|
| void ReadingListModelImpl::SetEntryTitle(const GURL& url,
|
| const std::string& title) {
|
| DCHECK(loaded());
|
|
|