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

Unified Diff: ios/chrome/browser/reading_list/reading_list_model_impl.cc

Issue 2491383002: Use Distilled path instead of DistilledURL. (Closed)
Patch Set: fix compilation 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_model_impl.cc
diff --git a/ios/chrome/browser/reading_list/reading_list_model_impl.cc b/ios/chrome/browser/reading_list/reading_list_model_impl.cc
index adb0c8c690adc02ec7e7c1d4e6c55677b3199110..e67ea6e8440b16affd4014d783b4ffd875fc606b 100644
--- a/ios/chrome/browser/reading_list/reading_list_model_impl.cc
+++ b/ios/chrome/browser/reading_list/reading_list_model_impl.cc
@@ -234,8 +234,9 @@ void ReadingListModelImpl::SetEntryTitle(const GURL& url,
}
}
-void ReadingListModelImpl::SetEntryDistilledURL(const GURL& url,
- const GURL& distilled_url) {
+void ReadingListModelImpl::SetEntryDistilledPath(
+ const GURL& url,
+ const base::FilePath& distilled_path) {
DCHECK(loaded());
const ReadingListEntry entry(url, std::string());
@@ -245,7 +246,7 @@ void ReadingListModelImpl::SetEntryDistilledURL(const GURL& url,
observer.ReadingListWillUpdateUnreadEntry(
this, std::distance(unread_.begin(), result));
}
- result->SetDistilledURL(distilled_url);
+ result->SetDistilledPath(distilled_path);
if (storage_layer_ && !IsPerformingBatchUpdates())
storage_layer_->SavePersistentUnreadList(unread_);
for (auto& observer : observers_)
@@ -259,7 +260,7 @@ void ReadingListModelImpl::SetEntryDistilledURL(const GURL& url,
observer.ReadingListWillUpdateReadEntry(
this, std::distance(read_.begin(), result));
}
- result->SetDistilledURL(distilled_url);
+ result->SetDistilledPath(distilled_path);
if (storage_layer_ && !IsPerformingBatchUpdates())
storage_layer_->SavePersistentReadList(read_);
for (auto& observer : observers_)

Powered by Google App Engine
This is Rietveld 408576698