Skip to content

Commit

Permalink
Merge pull request #11263 from brave/android_enable_wallet
Browse files Browse the repository at this point in the history
Enables wallet on Android by default, disables Dapps
  • Loading branch information
SergeyZhukovsky authored Nov 24, 2021
2 parents 7b5538f + e0c22b3 commit 3cebe3b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
4 changes: 4 additions & 0 deletions browser/profiles/brave_renderer_updater.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 ==
Expand Down
10 changes: 2 additions & 8 deletions components/brave_wallet/common/features.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3cebe3b

Please sign in to comment.