From b2d755b596c06f95ed4135e68cd70d78a40a7832 Mon Sep 17 00:00:00 2001 From: deeppandya Date: Thu, 12 Dec 2024 12:16:47 -0500 Subject: [PATCH] Add feature flag for new onboarding --- android/java/org/chromium/base/BraveFeatureList.java | 1 + browser/brave_browser_features.cc | 5 +++++ browser/brave_browser_features.h | 1 + 3 files changed, 7 insertions(+) diff --git a/android/java/org/chromium/base/BraveFeatureList.java b/android/java/org/chromium/base/BraveFeatureList.java index bce7846dc3af..402976e14c65 100644 --- a/android/java/org/chromium/base/BraveFeatureList.java +++ b/android/java/org/chromium/base/BraveFeatureList.java @@ -33,6 +33,7 @@ public abstract class BraveFeatureList { public static final String BRAVE_SHOW_STRICT_FINGERPRINTING_MODE = "BraveShowStrictFingerprintingMode"; public static final String BRAVE_DAY_ZERO_EXPERIMENT = "BraveDayZeroExperiment"; + public static final String BRAVE_NEW_ANDROID_ONBOARDING = "NewAndroidOnboarding"; public static final String BRAVE_FALLBACK_DOH_PROVIDER = "BraveFallbackDoHProvider"; public static final String BRAVE_BLOCK_ALL_COOKIES_TOGGLE = "BlockAllCookiesToggle"; } diff --git a/browser/brave_browser_features.cc b/browser/brave_browser_features.cc index 6bf68d23a30b..25f58316c6c5 100644 --- a/browser/brave_browser_features.cc +++ b/browser/brave_browser_features.cc @@ -46,6 +46,11 @@ BASE_FEATURE(kBraveDayZeroExperiment, "BraveDayZeroExperiment", base::FEATURE_DISABLED_BY_DEFAULT); +// Enable new onabording on android +BASE_FEATURE(kNewAndroidOnboarding, + "NewAndroidOnboarding", + base::FEATURE_DISABLED_BY_DEFAULT); + // The variant of the "day zero" experiment. i.e. A, B, C, D, etc. const base::FeatureParam kBraveDayZeroExperimentVariant{ &kBraveDayZeroExperiment, diff --git a/browser/brave_browser_features.h b/browser/brave_browser_features.h index eb582810c206..efe7b1525e33 100644 --- a/browser/brave_browser_features.h +++ b/browser/brave_browser_features.h @@ -19,6 +19,7 @@ BASE_DECLARE_FEATURE(kBraveCopyCleanLinkFromJs); BASE_DECLARE_FEATURE(kBraveOverrideDownloadDangerLevel); BASE_DECLARE_FEATURE(kBraveWebViewRoundedCorners); BASE_DECLARE_FEATURE(kBraveDayZeroExperiment); +BASE_DECLARE_FEATURE(kNewAndroidOnboarding); extern const base::FeatureParam kBraveDayZeroExperimentVariant;