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

Unified Diff: components/ntp_tiles/most_visited_sites.cc

Issue 2568133005: [SuggestionsService] Split SuggestionsService interface from impl (Closed)
Patch Set: Moved impl to dedicated file. 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
Index: components/ntp_tiles/most_visited_sites.cc
diff --git a/components/ntp_tiles/most_visited_sites.cc b/components/ntp_tiles/most_visited_sites.cc
index 397b9e417e57e19ef82cba73c832ca1ae7f70b0d..84b7b3859e1222ff570fcf98693199a123e8f922 100644
--- a/components/ntp_tiles/most_visited_sites.cc
+++ b/components/ntp_tiles/most_visited_sites.cc
@@ -161,7 +161,8 @@ void MostVisitedSites::BuildCurrentTiles() {
// Get the current suggestions from cache. If the cache is empty, this will
// fall back to TopSites.
OnSuggestionsProfileAvailable(
- suggestions_service_->GetSuggestionsDataFromCache());
+ suggestions_service_->GetSuggestionsDataFromCache().value_or(
+ SuggestionsProfile()));
}
void MostVisitedSites::InitiateTopSitesQuery() {
« no previous file with comments | « chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider.cc ('k') | components/suggestions/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698