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

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

Issue 2647763005: Store the distilled_url in Reading List entry in Reading List on iOS. (Closed)
Patch Set: feedback Created 3 years, 11 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 cf7ee6b9d0cf467cdfe2a65a174b8fc7e4b9cd10..015bcc44970745800c8c832d13017071958f6446 100644
--- a/components/reading_list/ios/reading_list_model_impl.cc
+++ b/components/reading_list/ios/reading_list_model_impl.cc
@@ -388,9 +388,10 @@ void ReadingListModelImpl::SetEntryTitle(const GURL& url,
}
}
-void ReadingListModelImpl::SetEntryDistilledPath(
+void ReadingListModelImpl::SetEntryDistilledInfo(
const GURL& url,
- const base::FilePath& distilled_path) {
+ const base::FilePath& distilled_path,
+ const GURL& distilled_url) {
DCHECK(CalledOnValidThread());
DCHECK(loaded());
auto iterator = entries_->find(url);
@@ -406,7 +407,7 @@ void ReadingListModelImpl::SetEntryDistilledPath(
for (ReadingListModelObserver& observer : observers_) {
observer.ReadingListWillUpdateEntry(this, url);
}
- entry.SetDistilledPath(distilled_path);
+ entry.SetDistilledInfo(distilled_path, distilled_url);
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