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

Unified Diff: ios/chrome/browser/reading_list/reading_list_web_state_observer.mm

Issue 2525663002: Refactor Reading List Model to use URL as key. (Closed)
Patch Set: fix Created 4 years 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
« no previous file with comments | « ios/chrome/browser/reading_list/reading_list_download_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/reading_list/reading_list_web_state_observer.mm
diff --git a/ios/chrome/browser/reading_list/reading_list_web_state_observer.mm b/ios/chrome/browser/reading_list/reading_list_web_state_observer.mm
index af677b1325c914b81aa9af2f340013fa20a42b60..d7aab6f6f6ad247f54e481ee380299e6e5502f9e 100644
--- a/ios/chrome/browser/reading_list/reading_list_web_state_observer.mm
+++ b/ios/chrome/browser/reading_list/reading_list_web_state_observer.mm
@@ -115,8 +115,7 @@ void ReadingListWebStateObserver::VerifyIfReadingListEntryStartedLoading() {
double progress = web_state()->GetLoadingProgress();
const double kMinimumExpectedProgress = 0.15;
if (progress < kMinimumExpectedProgress) {
- const ReadingListEntry* entry =
- reading_list_model_->GetEntryFromURL(url, nullptr);
+ const ReadingListEntry* entry = reading_list_model_->GetEntryByURL(url);
if (!entry)
return;
// TODO(crbug.com/664124) Actually load offline pages.
« no previous file with comments | « ios/chrome/browser/reading_list/reading_list_download_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698