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

Unified Diff: components/reading_list/ios/reading_list_model_impl.cc

Issue 2565753002: Only distill unread items (Closed)
Patch Set: past tense in comments Created 4 years 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 | « no previous file | components/reading_list/ios/reading_list_model_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/reading_list/ios/reading_list_model_impl.cc
diff --git a/components/reading_list/ios/reading_list_model_impl.cc b/components/reading_list/ios/reading_list_model_impl.cc
index 14cd81ce5a6fe226fa5fc7442e9d0bc4452d8c66..8e7d0bbed113e6972791e97e4b35cc44b05769d1 100644
--- a/components/reading_list/ios/reading_list_model_impl.cc
+++ b/components/reading_list/ios/reading_list_model_impl.cc
@@ -170,8 +170,11 @@ ReadingListEntry* ReadingListModelImpl::SyncMergeEntry(
} else {
unread_entry_count_++;
}
- for (auto& observer : observers_)
+ for (auto& observer : observers_) {
+ observer.ReadingListDidMoveEntry(this, url);
observer.ReadingListDidApplyChanges(this);
+ }
+
return existing_entry;
}
@@ -263,6 +266,7 @@ void ReadingListModelImpl::SetReadStatus(const GURL& url, bool read) {
storage_layer_->SaveEntry(entry);
}
for (ReadingListModelObserver& observer : observers_) {
+ observer.ReadingListDidMoveEntry(this, url);
observer.ReadingListDidApplyChanges(this);
}
}
« no previous file with comments | « no previous file | components/reading_list/ios/reading_list_model_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698