| Index: chrome/browser/android/ntp/most_visited_sites.cc
|
| diff --git a/chrome/browser/android/ntp/most_visited_sites.cc b/chrome/browser/android/ntp/most_visited_sites.cc
|
| index ac625b2a27cddf63298249efe447229b86534716..3c8c78fd3785d07625dbd0a69b08d28fd2137ad2 100644
|
| --- a/chrome/browser/android/ntp/most_visited_sites.cc
|
| +++ b/chrome/browser/android/ntp/most_visited_sites.cc
|
| @@ -177,8 +177,11 @@ MostVisitedSites::Suggestion::Suggestion(Suggestion&&) = default;
|
| MostVisitedSites::Suggestion&
|
| MostVisitedSites::Suggestion::operator=(Suggestion&&) = default;
|
|
|
| -MostVisitedSites::MostVisitedSites(Profile* profile)
|
| - : profile_(profile), top_sites_(TopSitesFactory::GetForProfile(profile)),
|
| +MostVisitedSites::MostVisitedSites(
|
| + Profile* profile,
|
| + variations::VariationsService* variations_service)
|
| + : profile_(profile), variations_service_(variations_service),
|
| + top_sites_(TopSitesFactory::GetForProfile(profile)),
|
| suggestions_service_(SuggestionsServiceFactory::GetForProfile(profile_)),
|
| observer_(nullptr), num_sites_(0),
|
| received_most_visited_sites_(false), received_popular_sites_(false),
|
| @@ -209,6 +212,7 @@ void MostVisitedSites::SetMostVisitedURLsObserver(
|
| popular_sites_.reset(new PopularSites(
|
| profile_->GetPrefs(),
|
| TemplateURLServiceFactory::GetForProfile(profile_),
|
| + variations_service_,
|
| profile_->GetRequestContext(),
|
| GetPopularSitesCountry(),
|
| GetPopularSitesVersion(),
|
|
|