Skip to content

Commit

Permalink
[ios] Add AppFlows flag
Browse files Browse the repository at this point in the history
Change-Id: I13e00a00064d9d861c054e35841f328b25e54774
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3140568
Reviewed-by: Sergio Collazos <sczs@chromium.org>
Commit-Queue: edchin <edchin@chromium.org>
Cr-Commit-Position: refs/heads/main@{#918131}
  • Loading branch information
edx246 authored and Chromium LUCI CQ committed Sep 3, 2021
1 parent d2158ea commit f7b7ce5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ios/chrome/browser/ui/ntp/new_tab_page_feature.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@ bool IsRefactoredNTP();
// Whether the discover feed content preview is shown in the context menu.
bool IsDiscoverFeedPreviewEnabled();

// Whether the discover feed appflows are enabled.
bool IsDiscoverFeedAppFlowsEnabled();

#endif // IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_FEATURE_H_
7 changes: 7 additions & 0 deletions ios/chrome/browser/ui/ntp/new_tab_page_feature.mm
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
const base::Feature kEnableDiscoverFeedPreview{
"EnableDiscoverFeedPreview", base::FEATURE_DISABLED_BY_DEFAULT};

const base::Feature kEnableDiscoverFeedAppFlows{
"EnableDiscoverFeedAppFlows", base::FEATURE_ENABLED_BY_DEFAULT};

const base::Feature kEnableNTPMemoryEnhancement{
"EnableNTPMemoryEnhancement", base::FEATURE_ENABLED_BY_DEFAULT};

Expand All @@ -33,3 +36,7 @@ bool IsRefactoredNTP() {
bool IsDiscoverFeedPreviewEnabled() {
return base::FeatureList::IsEnabled(kEnableDiscoverFeedPreview);
}

bool IsDiscoverFeedAppFlowsEnabled() {
return base::FeatureList::IsEnabled(kEnableDiscoverFeedAppFlows);
}

0 comments on commit f7b7ce5

Please sign in to comment.