Remove existing day zero UI modifications (#32441)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user