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

Unified Diff: ios/chrome/browser/reading_list/reading_list_store.h

Issue 2525663002: Refactor Reading List Model to use URL as key. (Closed)
Patch Set: format Created 4 years, 1 month 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
Index: ios/chrome/browser/reading_list/reading_list_store.h
diff --git a/ios/chrome/browser/reading_list/reading_list_store.h b/ios/chrome/browser/reading_list/reading_list_store.h
index 1da170033e35993db42b19aff18ebf1df19c2b1f..d334f0937bec083574cda5956a9e65088e6119f6 100644
--- a/ios/chrome/browser/reading_list/reading_list_store.h
+++ b/ios/chrome/browser/reading_list/reading_list_store.h
@@ -35,8 +35,8 @@ class ReadingListStore : public syncer::ModelTypeSyncBridge,
void SetReadingListModel(ReadingListModel* model,
ReadingListStoreDelegate* delegate) override;
- void SaveEntry(const ReadingListEntry& entry, bool read) override;
- void RemoveEntry(const ReadingListEntry& entry) override;
+ void SaveEntry(const ReadingListEntry* entry) override;
jif-google 2016/11/22 18:21:45 why a pointer?
Olivier 2016/11/28 14:54:15 done.
+ void RemoveEntry(const ReadingListEntry* entry) override;
jif-google 2016/11/22 18:21:45 same
Olivier 2016/11/28 14:54:15 Done.
// ReadingListModelStorage implementation.
syncer::ModelTypeSyncBridge* GetModelTypeSyncBridge() override;
@@ -123,8 +123,7 @@ class ReadingListStore : public syncer::ModelTypeSyncBridge,
std::unique_ptr<syncer::MetadataBatch> metadata_batch);
void AddEntryToBatch(syncer::MutableDataBatch* batch,
- const ReadingListEntry& entry,
- bool read);
+ const ReadingListEntry* entry);
jif-google 2016/11/22 18:21:45 same
Olivier 2016/11/28 14:54:15 Done.
std::unique_ptr<syncer::ModelTypeStore> store_;
ReadingListModel* model_;

Powered by Google App Engine
This is Rietveld 408576698