Remove existing day zero UI modifications (#32441)

This commit is contained in:
Darnell Andries
2025-11-21 06:20:18 +01:00
committed by GitHub
parent d54994410a
commit 4bca16b1b3
2 changed files with 0 additions and 18 deletions
@@ -21,14 +21,6 @@
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
#if BUILDFLAG(IS_ANDROID)
#include <string_view>
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
#include "brave/build/android/jni_headers/DayZeroHelper_jni.h"
#endif // #BUILDFLAG(IS_ANDROID)
// static
void DayZeroBrowserUIExptManager::RegisterLocalStatePrefs(
PrefRegistrySimple* registry) {
@@ -120,12 +112,6 @@ void DayZeroBrowserUIExptManager::OnProfileManagerDestroying() {
void DayZeroBrowserUIExptManager::SetForDayZeroBrowserUI(Profile* profile) {
VLOG(2) << __func__ << " Update prefs for day zero expt.";
#if BUILDFLAG(IS_ANDROID)
Java_DayZeroHelper_setDayZeroVariant(base::android::AttachCurrentThread(),
base::android::ConvertUTF8ToJavaString(
base::android::AttachCurrentThread(),
GetDayZeroVariant().value_or("")));
#endif // #BUILDFLAG(IS_ANDROID)
}
void DayZeroBrowserUIExptManager::ResetForDayZeroBrowserUI(Profile* profile) {
@@ -69,10 +69,6 @@ bool IsChromeDev(const std::u16string& browser_name) {
}
bool ShouldRedirectToGettingStartedPage() {
if (base::FeatureList::IsEnabled(features::kBraveDayZeroExperiment) &&
features::kBraveDayZeroExperimentVariant.Get() == "c") {
return true;
}
return base::FeatureList::IsEnabled(
brave_education::features::kShowGettingStartedPage);
}