Commit cda05642 authored by Daniel Park's avatar Daniel Park Committed by Commit Bot

[NTP Button] Groundwork for IPH

>Adds variables for IPH
>Implementing/showing IPH in a separate patch

Bug: 843639
Change-Id: I9a20eca6504f083216dfc430a08d4bbda1c63d27
Reviewed-on: https://chromium-review.googlesource.com/1067778Reviewed-by: default avatarDavid Trainor <dtrainor@chromium.org>
Reviewed-by: default avatarJesse Doherty <jwd@chromium.org>
Reviewed-by: default avatarTheresa <twellington@chromium.org>
Commit-Queue: Daniel Park <danielpark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#561647}
parent 7dc6c9bb
...@@ -17,6 +17,7 @@ public final class FeatureConstants { ...@@ -17,6 +17,7 @@ public final class FeatureConstants {
public static final String CONTEXTUAL_SUGGESTIONS_FEATURE = "IPH_ContextualSuggestions"; public static final String CONTEXTUAL_SUGGESTIONS_FEATURE = "IPH_ContextualSuggestions";
public static final String DATA_SAVER_PREVIEW_FEATURE = "IPH_DataSaverPreview"; public static final String DATA_SAVER_PREVIEW_FEATURE = "IPH_DataSaverPreview";
public static final String DATA_SAVER_DETAIL_FEATURE = "IPH_DataSaverDetail"; public static final String DATA_SAVER_DETAIL_FEATURE = "IPH_DataSaverDetail";
public static final String NTP_BUTTON_FEATURE = "IPH_NewTabPageButton";
public static final String MEDIA_DOWNLOAD_FEATURE = "IPH_MediaDownload"; public static final String MEDIA_DOWNLOAD_FEATURE = "IPH_MediaDownload";
......
...@@ -49,6 +49,8 @@ const base::Feature kIPHDownloadInfoBarDownloadsAreFasterFeature{ ...@@ -49,6 +49,8 @@ const base::Feature kIPHDownloadInfoBarDownloadsAreFasterFeature{
"IPH_DownloadInfoBarDownloadsAreFaster", base::FEATURE_DISABLED_BY_DEFAULT}; "IPH_DownloadInfoBarDownloadsAreFaster", base::FEATURE_DISABLED_BY_DEFAULT};
const base::Feature kIPHHomePageButtonFeature{ const base::Feature kIPHHomePageButtonFeature{
"IPH_HomePageButton", base::FEATURE_DISABLED_BY_DEFAULT}; "IPH_HomePageButton", base::FEATURE_DISABLED_BY_DEFAULT};
const base::Feature kIPHNewTabPageButtonFeature{
"IPH_NewTabPageButton", base::FEATURE_DISABLED_BY_DEFAULT};
#endif // defined(OS_ANDROID) #endif // defined(OS_ANDROID)
#if BUILDFLAG(ENABLE_DESKTOP_IN_PRODUCT_HELP) #if BUILDFLAG(ENABLE_DESKTOP_IN_PRODUCT_HELP)
......
...@@ -38,6 +38,7 @@ extern const base::Feature kIPHDownloadSettingsFeature; ...@@ -38,6 +38,7 @@ extern const base::Feature kIPHDownloadSettingsFeature;
extern const base::Feature kIPHDownloadInfoBarDownloadContinuingFeature; extern const base::Feature kIPHDownloadInfoBarDownloadContinuingFeature;
extern const base::Feature kIPHDownloadInfoBarDownloadsAreFasterFeature; extern const base::Feature kIPHDownloadInfoBarDownloadsAreFasterFeature;
extern const base::Feature kIPHHomePageButtonFeature; extern const base::Feature kIPHHomePageButtonFeature;
extern const base::Feature kIPHNewTabPageButtonFeature;
#endif // defined(OS_ANDROID) #endif // defined(OS_ANDROID)
#if BUILDFLAG(ENABLE_DESKTOP_IN_PRODUCT_HELP) #if BUILDFLAG(ENABLE_DESKTOP_IN_PRODUCT_HELP)
......
...@@ -33,6 +33,7 @@ const base::Feature* const kAllFeatures[] = { ...@@ -33,6 +33,7 @@ const base::Feature* const kAllFeatures[] = {
&kIPHDownloadInfoBarDownloadContinuingFeature, &kIPHDownloadInfoBarDownloadContinuingFeature,
&kIPHDownloadInfoBarDownloadsAreFasterFeature, &kIPHDownloadInfoBarDownloadsAreFasterFeature,
&kIPHHomePageButtonFeature, &kIPHHomePageButtonFeature,
&kIPHNewTabPageButtonFeature,
#endif // defined(OS_ANDROID) #endif // defined(OS_ANDROID)
#if BUILDFLAG(ENABLE_DESKTOP_IN_PRODUCT_HELP) #if BUILDFLAG(ENABLE_DESKTOP_IN_PRODUCT_HELP)
&kIPHBookmarkFeature, &kIPHBookmarkFeature,
......
...@@ -72,6 +72,7 @@ DEFINE_VARIATION_PARAM(kIPHDownloadInfoBarDownloadContinuingFeature, ...@@ -72,6 +72,7 @@ DEFINE_VARIATION_PARAM(kIPHDownloadInfoBarDownloadContinuingFeature,
DEFINE_VARIATION_PARAM(kIPHDownloadInfoBarDownloadsAreFasterFeature, DEFINE_VARIATION_PARAM(kIPHDownloadInfoBarDownloadsAreFasterFeature,
"IPH_DownloadInfoBarDownloadsAreFaster"); "IPH_DownloadInfoBarDownloadsAreFaster");
DEFINE_VARIATION_PARAM(kIPHHomePageButtonFeature, "IPH_HomePageButton"); DEFINE_VARIATION_PARAM(kIPHHomePageButtonFeature, "IPH_HomePageButton");
DEFINE_VARIATION_PARAM(kIPHNewTabPageButtonFeature, "IPH_NewTabPageButton");
#endif // defined(OS_ANDROID) #endif // defined(OS_ANDROID)
#if BUILDFLAG(ENABLE_DESKTOP_IN_PRODUCT_HELP) #if BUILDFLAG(ENABLE_DESKTOP_IN_PRODUCT_HELP)
DEFINE_VARIATION_PARAM(kIPHBookmarkFeature, "IPH_Bookmark"); DEFINE_VARIATION_PARAM(kIPHBookmarkFeature, "IPH_Bookmark");
...@@ -109,6 +110,7 @@ constexpr flags_ui::FeatureEntry::FeatureVariation ...@@ -109,6 +110,7 @@ constexpr flags_ui::FeatureEntry::FeatureVariation
VARIATION_ENTRY(kIPHDownloadInfoBarDownloadContinuingFeature), VARIATION_ENTRY(kIPHDownloadInfoBarDownloadContinuingFeature),
VARIATION_ENTRY(kIPHDownloadInfoBarDownloadsAreFasterFeature), VARIATION_ENTRY(kIPHDownloadInfoBarDownloadsAreFasterFeature),
VARIATION_ENTRY(kIPHHomePageButtonFeature), VARIATION_ENTRY(kIPHHomePageButtonFeature),
VARIATION_ENTRY(kIPHNewTabPageButtonFeature),
#elif BUILDFLAG(ENABLE_DESKTOP_IN_PRODUCT_HELP) #elif BUILDFLAG(ENABLE_DESKTOP_IN_PRODUCT_HELP)
VARIATION_ENTRY(kIPHBookmarkFeature), VARIATION_ENTRY(kIPHBookmarkFeature),
VARIATION_ENTRY(kIPHIncognitoWindowFeature), VARIATION_ENTRY(kIPHIncognitoWindowFeature),
......
...@@ -6037,6 +6037,14 @@ should be able to be added at any place in this file. ...@@ -6037,6 +6037,14 @@ should be able to be added at any place in this file.
</description> </description>
</action> </action>
<action name="InProductHelp.ShouldTriggerHelpUI.IPH_NewTabPageButton">
<owner>danielpark@chromium.org</owner>
<description>
The feature engagement tracker tried to determine whether in-product help
should be shown to the user.
</description>
</action>
<action name="InProductHelp.ShouldTriggerHelpUI.IPH_NewTabTip"> <action name="InProductHelp.ShouldTriggerHelpUI.IPH_NewTabTip">
<owner>edchin@chromium.org</owner> <owner>edchin@chromium.org</owner>
<owner>gchatz@chromium.org</owner> <owner>gchatz@chromium.org</owner>
...@@ -6292,6 +6300,14 @@ should be able to be added at any place in this file. ...@@ -6292,6 +6300,14 @@ should be able to be added at any place in this file.
</description> </description>
</action> </action>
<action
name="InProductHelp.ShouldTriggerHelpUIResult.NotTriggered.IPH_NewTabPageButton">
<owner>danielpark@chromium.org</owner>
<description>
A user action that could have triggered In-Product Help did not.
</description>
</action>
<action <action
name="InProductHelp.ShouldTriggerHelpUIResult.NotTriggered.IPH_NewTabTip"> name="InProductHelp.ShouldTriggerHelpUIResult.NotTriggered.IPH_NewTabTip">
<owner>edchin@chromium.org</owner> <owner>edchin@chromium.org</owner>
...@@ -6516,6 +6532,12 @@ should be able to be added at any place in this file. ...@@ -6516,6 +6532,12 @@ should be able to be added at any place in this file.
<description>A user action triggered In-Product Help.</description> <description>A user action triggered In-Product Help.</description>
</action> </action>
<action
name="InProductHelp.ShouldTriggerHelpUIResult.Triggered.IPH_NewTabPageButton">
<owner>danielpark@chromium.org</owner>
<description>A user action triggered In-Product Help.</description>
</action>
<action name="InProductHelp.ShouldTriggerHelpUIResult.Triggered.IPH_NewTabTip"> <action name="InProductHelp.ShouldTriggerHelpUIResult.Triggered.IPH_NewTabTip">
<owner>edchin@chromium.org</owner> <owner>edchin@chromium.org</owner>
<owner>gchatz@chromium.org</owner> <owner>gchatz@chromium.org</owner>
...@@ -6686,6 +6708,15 @@ should be able to be added at any place in this file. ...@@ -6686,6 +6708,15 @@ should be able to be added at any place in this file.
</description> </description>
</action> </action>
<action
name="InProductHelp.ShouldTriggerHelpUIResult.WouldHaveTriggered.IPH_NewTabPageButton">
<owner>danielpark@chromium.org</owner>
<description>
A user action would have triggered In-Product Help, but the feature was
configured for tracking only.
</description>
</action>
<action <action
name="InProductHelp.ShouldTriggerHelpUIResult.WouldHaveTriggered.IPH_NewTabTip"> name="InProductHelp.ShouldTriggerHelpUIResult.WouldHaveTriggered.IPH_NewTabTip">
<owner>edchin@chromium.org</owner> <owner>edchin@chromium.org</owner>
...@@ -20325,6 +20356,7 @@ should be able to be added at any place in this file. ...@@ -20325,6 +20356,7 @@ should be able to be added at any place in this file.
<suffix name="MediaDownload" label="For MediaDownload feature."/> <suffix name="MediaDownload" label="For MediaDownload feature."/>
<suffix name="NewIncognitoTabTip" label="For NewIncognitoTabTip feature."/> <suffix name="NewIncognitoTabTip" label="For NewIncognitoTabTip feature."/>
<suffix name="NewTab" label="For NewTab feature."/> <suffix name="NewTab" label="For NewTab feature."/>
<suffix name="NewTabPageButton" label="For NewTabPageButton feature."/>
<suffix name="NewTabTip" label="For NewTabTip feature."/> <suffix name="NewTabTip" label="For NewTabTip feature."/>
<affected-action name="InProductHelp.NotifyEvent.IPH"/> <affected-action name="InProductHelp.NotifyEvent.IPH"/>
<affected-action name="InProductHelp.NotifyUsedEvent.IPH"/> <affected-action name="InProductHelp.NotifyUsedEvent.IPH"/>
......
...@@ -113083,6 +113083,8 @@ uploading your change for review. ...@@ -113083,6 +113083,8 @@ uploading your change for review.
<suffix name="IPH_NewIncognitoTabTip" <suffix name="IPH_NewIncognitoTabTip"
label="In product help new incognito tab tip."/> label="In product help new incognito tab tip."/>
<suffix name="IPH_NewTab" label="In product help new tab."/> <suffix name="IPH_NewTab" label="In product help new tab."/>
<suffix name="IPH_NewTabPageButton"
label="In product help new tab page button."/>
<suffix name="IPH_NewTabTip" label="In product help new tab tip."/> <suffix name="IPH_NewTabTip" label="In product help new tab tip."/>
<affected-histogram name="InProductHelp.NotifyEventReadyState"/> <affected-histogram name="InProductHelp.NotifyEventReadyState"/>
<affected-histogram name="InProductHelp.ShouldTriggerHelpUI"/> <affected-histogram name="InProductHelp.ShouldTriggerHelpUI"/>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment