From e0c22b3a31f4ffd0d416c2974a2bae6864614a1e Mon Sep 17 00:00:00 2001 From: Serg Date: Tue, 23 Nov 2021 21:43:31 -0500 Subject: [PATCH] Enables wallet on Android by default, disables Dapps --- browser/profiles/brave_renderer_updater.cc | 4 ++++ components/brave_wallet/common/features.cc | 10 ++-------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/browser/profiles/brave_renderer_updater.cc b/browser/profiles/brave_renderer_updater.cc index 76c5992872b6..993880f7e2d2 100644 --- a/browser/profiles/brave_renderer_updater.cc +++ b/browser/profiles/brave_renderer_updater.cc @@ -88,10 +88,14 @@ void BraveRendererUpdater::UpdateRenderer( brave_wallet_web3_provider_.GetValue()); bool brave_use_native_wallet = +#if defined(OS_ANDROID) + false; +#else (default_wallet == brave_wallet::mojom::DefaultWallet::BraveWalletPreferExtension || default_wallet == brave_wallet::mojom::DefaultWallet::BraveWallet) && is_wallet_allowed_for_context_; +#endif bool allow_overwrite_window_ethereum = default_wallet == diff --git a/components/brave_wallet/common/features.cc b/components/brave_wallet/common/features.cc index fb281a0f9d9a..61cb5506b352 100644 --- a/components/brave_wallet/common/features.cc +++ b/components/brave_wallet/common/features.cc @@ -10,14 +10,8 @@ namespace brave_wallet { namespace features { -const base::Feature kNativeBraveWalletFeature{ - "NativeBraveWallet", -#if !defined(OS_ANDROID) - base::FEATURE_ENABLED_BY_DEFAULT -#else - base::FEATURE_DISABLED_BY_DEFAULT -#endif -}; +const base::Feature kNativeBraveWalletFeature{"NativeBraveWallet", + base::FEATURE_ENABLED_BY_DEFAULT}; } // namespace features } // namespace brave_wallet