Skip to content

Commit

Permalink
Add zcash shielded feature flag to chrome://flags
Browse files Browse the repository at this point in the history
  • Loading branch information
cypt4 committed Jan 17, 2025
1 parent e798456 commit 42595bb
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions browser/about_flags.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "brave/components/brave_rewards/common/features.h"
#include "brave/components/brave_shields/core/common/features.h"
#include "brave/components/brave_vpn/common/buildflags/buildflags.h"
#include "brave/components/brave_wallet/common/buildflags.h"
#include "brave/components/brave_wallet/common/features.h"
#include "brave/components/de_amp/common/features.h"
#include "brave/components/debounce/core/common/features.h"
Expand Down Expand Up @@ -86,6 +87,22 @@

#define EXPAND_FEATURE_ENTRIES(...) __VA_ARGS__,

const flags_ui::FeatureEntry::FeatureParam
kZCashShieldedTransactionsDisabled[] = {
{"zcash_shielded_transactions_enabled", "false"}};
#if BUILDFLAG(ENABLE_ORCHARD)
const flags_ui::FeatureEntry::FeatureParam kZCashShieldedTransactionsEnabled[] =
{{"zcash_shielded_transactions_enabled", "true"}};
#endif // BUILDFLAG(ENABLE_ORCHARD)
const flags_ui::FeatureEntry::FeatureVariation kZCashFeatureVariations[] = {
{"- Shielded support disabled", kZCashShieldedTransactionsDisabled,
std::size(kZCashShieldedTransactionsDisabled), nullptr},
#if BUILDFLAG(ENABLE_ORCHARD)
{"- Shielded support enabled", kZCashShieldedTransactionsEnabled,
std::size(kZCashShieldedTransactionsEnabled), nullptr}
#endif // BUILDFLAG(ENABLE_ORCHARD)
};

#define SPEEDREADER_FEATURE_ENTRIES \
IF_BUILDFLAG( \
ENABLE_SPEEDREADER, \
Expand Down Expand Up @@ -156,14 +173,11 @@
FEATURE_VALUE_TYPE( \
brave_wallet::features::kNativeBraveWalletFeature), \
}, \
{ \
"brave-wallet-zcash", \
"Enable BraveWallet ZCash support", \
"Zcash support for native Brave Wallet", \
kOsDesktop | kOsAndroid, \
FEATURE_VALUE_TYPE( \
brave_wallet::features::kBraveWalletZCashFeature), \
}, \
{"brave-wallet-zcash", "Enable BraveWallet ZCash support", \
"Zcash support for native Brave Wallet", kOsDesktop | kOsAndroid, \
FEATURE_WITH_PARAMS_VALUE_TYPE( \
brave_wallet::features::kBraveWalletZCashFeature, \
kZCashFeatureVariations, "BraveWalletZCash")}, \
{ \
"brave-wallet-bitcoin", \
"Enable Brave Wallet Bitcoin support", \
Expand Down

0 comments on commit 42595bb

Please sign in to comment.