| 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 53c83aff0c94d778e2371e809faeac154bed3612..fb350c950ca7a55b99df42d773b55127b38e2e24 100644
|
| --- a/chrome/browser/android/ntp/most_visited_sites.cc
|
| +++ b/chrome/browser/android/ntp/most_visited_sites.cc
|
| @@ -177,12 +177,15 @@ 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),
|
| - recorded_uma_(false), scoped_observer_(this), weak_ptr_factory_(this) {
|
| + observer_(nullptr), num_sites_(0), received_most_visited_sites_(false),
|
| + received_popular_sites_(false), recorded_uma_(false),
|
| + scoped_observer_(this), weak_ptr_factory_(this) {
|
| // Register the thumbnails debugging page.
|
| content::URLDataSource::Add(profile_, new ThumbnailListSource(profile_));
|
|
|
| @@ -207,6 +210,7 @@ void MostVisitedSites::SetMostVisitedURLsObserver(
|
| popular_sites_.reset(new PopularSites(
|
| profile_->GetPrefs(),
|
| TemplateURLServiceFactory::GetForProfile(profile_),
|
| + variations_service_,
|
| profile_->GetRequestContext(),
|
| GetPopularSitesCountry(),
|
| GetPopularSitesVersion(),
|
|
|