| 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 9e1f1102217661f5be331dfd34c657d1c24c79ed..8bb994301bf0e5ad358889afad99ec6c37327627 100644
|
| --- a/chrome/browser/ntp_snippets/download_suggestions_provider.cc
|
| +++ b/chrome/browser/ntp_snippets/download_suggestions_provider.cc
|
| @@ -25,6 +25,7 @@
|
| #include "components/offline_pages/offline_page_model_query.h"
|
| #include "components/prefs/pref_registry_simple.h"
|
| #include "components/prefs/pref_service.h"
|
| +#include "components/variations/variations_associated_data.h"
|
| #include "ui/base/l10n/l10n_util.h"
|
| #include "ui/gfx/image/image.h"
|
|
|
| @@ -51,7 +52,7 @@ const char* kMaxSuggestionsCountParamName = "downloads_max_count";
|
| int GetMaxSuggestionsCount() {
|
| bool assets_enabled =
|
| base::FeatureList::IsEnabled(features::kAssetDownloadSuggestionsFeature);
|
| - return ntp_snippets::GetParamAsInt(
|
| + return variations::GetVariationParamByFeatureAsInt(
|
| assets_enabled ? features::kAssetDownloadSuggestionsFeature
|
| : features::kOfflinePageDownloadSuggestionsFeature,
|
| kMaxSuggestionsCountParamName, kDefaultMaxSuggestionsCount);
|
|
|