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

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

Issue 2707043002: [Reading List iOS] Store distillation date and size. (Closed)
Patch Set: done Created 3 years, 10 months 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: 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 d58fc1ba6fb797c8d8b73144ced97edfb61a33c5..75024fbf3456766dea7859ee392c1bde620af450 100644
--- a/components/reading_list/ios/reading_list_model_impl.cc
+++ b/components/reading_list/ios/reading_list_model_impl.cc
@@ -391,7 +391,9 @@ void ReadingListModelImpl::SetEntryTitle(const GURL& url,
void ReadingListModelImpl::SetEntryDistilledInfo(
const GURL& url,
const base::FilePath& distilled_path,
- const GURL& distilled_url) {
+ const GURL& distilled_url,
+ int64_t distillation_size,
+ int64_t distillation_date) {
DCHECK(CalledOnValidThread());
DCHECK(loaded());
auto iterator = entries_->find(url);
@@ -407,7 +409,8 @@ void ReadingListModelImpl::SetEntryDistilledInfo(
for (ReadingListModelObserver& observer : observers_) {
observer.ReadingListWillUpdateEntry(this, url);
}
- entry.SetDistilledInfo(distilled_path, distilled_url);
+ entry.SetDistilledInfo(distilled_path, distilled_url, distillation_size,
+ distillation_date);
if (storage_layer_) {
storage_layer_->SaveEntry(entry);
}
« no previous file with comments | « components/reading_list/ios/reading_list_model_impl.h ('k') | components/reading_list/ios/reading_list_model_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698