[NTP Snippets] Make a base::Feature instead of raw cmdline flag
which is the new way to do things, and will make future field trials easy.
Also add an about:flags entry for ease of testing.
BUG=none
Review URL: https://codereview.chromium.org/1679223003
Cr-Commit-Position: refs/heads/master@{#377266}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 7a315a1e..a9514540 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -1810,6 +1810,11 @@
IDS_FLAG_ENABLE_TAB_FOR_DESKTOP_SHARE_DESCRIPTION, kOsAll,
SINGLE_VALUE_TYPE(extensions::switches::kEnableTabForDesktopShare)}
#endif
+#if defined(OS_ANDROID)
+ {"enable-ntp-snippets", IDS_FLAGS_ENABLE_NTP_SNIPPETS_NAME,
+ IDS_FLAGS_ENABLE_NTP_SNIPPETS_DESCRIPTION, kOsAndroid,
+ FEATURE_VALUE_TYPE(chrome::android::kNTPSnippetsFeature)},
+#endif // defined(OS_ANDROID)
// NOTE: Adding new command-line switches requires adding corresponding
// entries to enum "LoginCustomFlags" in histograms.xml. See note in
// histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.