1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/feature_engagement/public/feature_list.h"
#include "base/stl_util.h"
#include "components/feature_engagement/buildflags.h"
#include "components/feature_engagement/public/feature_constants.h"
namespace feature_engagement {
namespace {
// Whenever a feature is added to |kAllFeatures|, it should also be added as
// DEFINE_VARIATION_PARAM in the header, and also added to the
// |kIPHDemoModeChoiceVariations| array.
const base::Feature* const kAllFeatures[] = {
&kIPHDummyFeature, // Ensures non-empty array for all platforms.
#if defined(OS_ANDROID)
&kIPHDataSaverDetailFeature,
&kIPHDataSaverMilestonePromoFeature,
&kIPHDataSaverPreviewFeature,
&kIPHDownloadHomeFeature,
&kIPHDownloadPageFeature,
&kIPHDownloadPageScreenshotFeature,
&kIPHChromeDuetHomeButtonFeature,
&kIPHChromeDuetSearchFeature,
&kIPHChromeDuetTabSwitcherFeature,
&kIPHChromeHomeExpandFeature,
&kIPHChromeHomePullToRefreshFeature,
&kIPHContextualSearchWebSearchFeature,
&kIPHContextualSearchPromoteTapFeature,
&kIPHContextualSearchPromotePanelOpenFeature,
&kIPHContextualSearchOptInFeature,
&kIPHDownloadSettingsFeature,
&kIPHDownloadInfoBarDownloadContinuingFeature,
&kIPHDownloadInfoBarDownloadsAreFasterFeature,
&kIPHFeedCardMenuFeature,
&kIPHIdentityDiscFeature,
&kIPHKeyboardAccessoryAddressFillingFeature,
&kIPHKeyboardAccessoryPasswordFillingFeature,
&kIPHKeyboardAccessoryPaymentFillingFeature,
&kIPHPreviewsOmniboxUIFeature,
&kIPHQuietNotificationPromptsFeature,
&kIPHTabGroupsQuicklyComparePagesFeature,
&kIPHTabGroupsTapToSeeAnotherTabFeature,
&kIPHTabGroupsYourTabsAreTogetherFeature,
&kIPHTabGroupsDragAndDropFeature,
&kIPHTranslateMenuButtonFeature,
&kIPHExploreSitesTileFeature,
#endif // defined(OS_ANDROID)
#if defined(OS_IOS)
&kIPHBottomToolbarTipFeature,
&kIPHLongPressToolbarTipFeature,
&kIPHNewTabTipFeature,
&kIPHNewIncognitoTabTipFeature,
&kIPHBadgedReadingListFeature,
&kIPHBadgedTranslateManualTriggerFeature,
#endif // defined(OS_IOS)
#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || \
defined(OS_CHROMEOS)
&kIPHFocusModeFeature,
&kIPHGlobalMediaControlsFeature,
&kIPHReopenTabFeature,
&kIPHWebUITabStripFeature,
#if BUILDFLAG(ENABLE_LEGACY_DESKTOP_IN_PRODUCT_HELP)
&kIPHBookmarkFeature,
&kIPHIncognitoWindowFeature,
&kIPHNewTabFeature,
#endif // BUILDFLAG(ENABLE_LEGACY_DESKTOP_IN_PRODUCT_HELP)
#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) ||
// defined(OS_CHROMEOS)
};
} // namespace
const char kIPHDemoModeFeatureChoiceParam[] = "chosen_feature";
std::vector<const base::Feature*> GetAllFeatures() {
return std::vector<const base::Feature*>(
kAllFeatures, kAllFeatures + base::size(kAllFeatures));
}
} // namespace feature_engagement
|