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

Unified Diff: chrome/browser/ntp_snippets/download_suggestions_provider.cc

Issue 2667073003: [NTP::Downloads] Do not fetch Offline Pages when their model is loaded. (Closed)
Patch Set: 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: chrome/browser/ntp_snippets/download_suggestions_provider.cc
diff --git a/chrome/browser/ntp_snippets/download_suggestions_provider.cc b/chrome/browser/ntp_snippets/download_suggestions_provider.cc
index 9eb137ba0ca3e9a32c86b99d94cece770e65f812..68e096e99727fe07f72b6618ea14d7d3021caa22 100644
--- a/chrome/browser/ntp_snippets/download_suggestions_provider.cc
+++ b/chrome/browser/ntp_snippets/download_suggestions_provider.cc
@@ -320,7 +320,9 @@ void DownloadSuggestionsProvider::
void DownloadSuggestionsProvider::OfflinePageModelLoaded(
offline_pages::OfflinePageModel* model) {
DCHECK_EQ(offline_page_model_, model);
- AsynchronouslyFetchOfflinePagesDownloads(/*notify=*/true);
+ // Ignored. We issue a fetch in the constructor (or when Downloads Manager is
+ // loaded) and Offline Page model answers asynchronously once it has been
+ // loaded.
}
void DownloadSuggestionsProvider::OfflinePageAdded(

Powered by Google App Engine
This is Rietveld 408576698