[Explore Sites]: Add feature parameters to explore sites flag

Bug: 867488
Change-Id: Ibb67a81cfef555e93128ae395fe6a9f0081a45ed
Reviewed-on: https://chromium-review.googlesource.com/1157183
Commit-Queue: Cathy Li <[email protected]>
Reviewed-by: Dmitry Titov <[email protected]>
Reviewed-by: Justin DeWitt <[email protected]>
Cr-Commit-Position: refs/heads/master@{#580303}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 2e8327a..c9318496 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -144,6 +144,7 @@
 #if defined(OS_ANDROID)
 #include "chrome/browser/android/chrome_feature_list.h"
 #include "chrome/browser/android/download/new_net_error_page_feature.h"
+#include "chrome/browser/android/explore_sites/explore_sites_feature.h"
 #else  // OS_ANDROID
 #include "chrome/browser/media/router/media_router_feature.h"
 #include "ui/message_center/public/cpp/features.h"
@@ -1206,6 +1207,12 @@
     {"Content Preview", &kNewNetErrorPageUIContentPreview, 1, nullptr},
     {"Content Preview + Auto download", &kNewNetErrorPageUIContentPreviewAutoDL,
      1, nullptr}};
+
+const FeatureEntry::FeatureParam kExploreSitesExperimental = {
+    chrome::android::explore_sites::kExploreSitesVariationParameterName,
+    chrome::android::explore_sites::kExploreSitesVariationExperimental};
+const FeatureEntry::FeatureVariation kExploreSitesVariations[] = {
+    {"Experimental", &kExploreSitesExperimental, 1, nullptr}};
 #endif  // defined(OS_ANDROID)
 
 // RECORDING USER METRICS FOR FLAGS:
@@ -1380,7 +1387,9 @@
      FEATURE_VALUE_TYPE(chrome::android::kContextualSearchUnityIntegration)},
     {"explore-sites", flag_descriptions::kExploreSitesName,
      flag_descriptions::kExploreSitesDescription, kOsAndroid,
-     FEATURE_VALUE_TYPE(chrome::android::kExploreSites)},
+     FEATURE_WITH_PARAMS_VALUE_TYPE(chrome::android::kExploreSites,
+                                    kExploreSitesVariations,
+                                    "ExploreSites")},
 #endif  // OS_ANDROID
     {"show-autofill-type-predictions",
      flag_descriptions::kShowAutofillTypePredictionsName,