| 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 68e096e99727fe07f72b6618ea14d7d3021caa22..2949fee7cd98add298ca1e79984a2249b9462b43 100644
|
| --- a/chrome/browser/ntp_snippets/download_suggestions_provider.cc
|
| +++ b/chrome/browser/ntp_snippets/download_suggestions_provider.cc
|
| @@ -464,15 +464,8 @@ void DownloadSuggestionsProvider::AsynchronouslyFetchOfflinePagesDownloads(
|
| return;
|
| }
|
|
|
| - if (!offline_page_model_->is_loaded()) {
|
| - // Offline pages model is not ready yet and may return no offline pages.
|
| - if (notify) {
|
| - SubmitContentSuggestions();
|
| - }
|
| -
|
| - return;
|
| - }
|
| -
|
| + // If Offline Page model is not loaded yet, it will process our query once it
|
| + // has finished loading.
|
| offline_page_model_->GetPagesMatchingQuery(
|
| BuildOfflinePageDownloadsQuery(offline_page_model_),
|
| base::Bind(&DownloadSuggestionsProvider::UpdateOfflinePagesCache,
|
|
|