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

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

Issue 2707043002: [Reading List iOS] Store distillation date and size. (Closed)
Patch Set: 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..a184796f9ba4ae44a2a14f9c3b8d199c15455991 100644
--- a/components/reading_list/ios/reading_list_model_impl.cc
+++ b/components/reading_list/ios/reading_list_model_impl.cc
@@ -391,7 +391,8 @@ 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 size) {
DCHECK(CalledOnValidThread());
DCHECK(loaded());
auto iterator = entries_->find(url);
@@ -407,7 +408,7 @@ void ReadingListModelImpl::SetEntryDistilledInfo(
for (ReadingListModelObserver& observer : observers_) {
observer.ReadingListWillUpdateEntry(this, url);
}
- entry.SetDistilledInfo(distilled_path, distilled_url);
+ entry.SetDistilledInfo(distilled_path, distilled_url, size);
if (storage_layer_) {
storage_layer_->SaveEntry(entry);
}

Powered by Google App Engine
This is Rietveld 408576698