diff --git a/app/brave_settings_strings.grdp b/app/brave_settings_strings.grdp index 4216dc5f3b7b..0b14521b975d 100644 --- a/app/brave_settings_strings.grdp +++ b/app/brave_settings_strings.grdp @@ -1146,9 +1146,6 @@ Are you sure you want to reset your wallet? If your wallet is not backed up, resetting will cause you to lose all account data (including any associated funds). Type "$1Yes" to confirm. - - Are you sure you want to clear your pinned NFTs? Some of NFTs may be lost forever if there is no other hosters in the IPFS network. Type "$1Yes" to confirm. - Your wallet was reset. diff --git a/browser/about_flags.cc b/browser/about_flags.cc index c915183a1887..b933073ebac7 100644 --- a/browser/about_flags.cc +++ b/browser/about_flags.cc @@ -218,14 +218,6 @@ #define BRAVE_NATIVE_WALLET_FEATURE_ENTRIES \ EXPAND_FEATURE_ENTRIES( \ - { \ - "enable-nft-pinning", \ - "Enable NFT pinning", \ - "Enable NFT pinning for Brave Wallet", \ - kOsDesktop, \ - FEATURE_VALUE_TYPE( \ - brave_wallet::features::kBraveWalletNftPinningFeature), \ - }, \ { \ "native-brave-wallet", \ "Enable Brave Wallet", \ diff --git a/browser/extensions/api/settings_private/brave_prefs_util.cc b/browser/extensions/api/settings_private/brave_prefs_util.cc index cd53aa553475..39da31ba9b72 100644 --- a/browser/extensions/api/settings_private/brave_prefs_util.cc +++ b/browser/extensions/api/settings_private/brave_prefs_util.cc @@ -324,9 +324,6 @@ const PrefsUtil::TypedPrefMap& BravePrefsUtil::GetAllowlistedKeys() { (*s_brave_allowlist)[kEnableMediaRouterOnRestart] = settings_api::PrefType::kBoolean; - // NFT pinning pref - (*s_brave_allowlist)[kAutoPinEnabled] = settings_api::PrefType::kBoolean; - #if defined(TOOLKIT_VIEWS) // Vertical tab strip prefs (*s_brave_allowlist)[brave_tabs::kVerticalTabsEnabled] = diff --git a/browser/resources/settings/brave_wallet_page/brave_wallet_page.ts b/browser/resources/settings/brave_wallet_page/brave_wallet_page.ts index 6c67d2046194..9851b2a91f77 100644 --- a/browser/resources/settings/brave_wallet_page/brave_wallet_page.ts +++ b/browser/resources/settings/brave_wallet_page/brave_wallet_page.ts @@ -66,12 +66,6 @@ class SettingsBraveWalletPage extends SettingsBraveWalletPageBase { } } - static get observers(){ - return [ - 'onShowOptionChanged_(prefs.brave.wallet.auto_pin_enabled.value)' - ] - } - browserProxy_ = BraveWalletBrowserProxyImpl.getInstance() ready() { diff --git a/browser/ui/webui/settings/brave_settings_localized_strings_provider.cc b/browser/ui/webui/settings/brave_settings_localized_strings_provider.cc index 09a297e1c053..acfa19bed9a5 100644 --- a/browser/ui/webui/settings/brave_settings_localized_strings_provider.cc +++ b/browser/ui/webui/settings/brave_settings_localized_strings_provider.cc @@ -808,10 +808,6 @@ void BraveAddCommonStrings(content::WebUIDataSource* html_source, confirmation_phrase); html_source->AddString("walletResetTransactionInfoConfirmation", reset_tx_confirmation_text); - auto clear_pinned_nft_confirmation = l10n_util::GetStringFUTF16( - IDS_SETTINGS_WALLET_CLEAR_PINNED_NFT_CONFIRMATION, confirmation_phrase); - html_source->AddString("walletClearPinnedNftConfirmation", - clear_pinned_nft_confirmation); #if BUILDFLAG(ENABLE_EXTENSIONS) html_source->AddString("webDiscoveryLearnMoreURL", kWebDiscoveryLearnMoreUrl); #endif diff --git a/components/brave_wallet/browser/brave_wallet_prefs.cc b/components/brave_wallet/browser/brave_wallet_prefs.cc index ed3dad3658d5..995932e638dd 100644 --- a/components/brave_wallet/browser/brave_wallet_prefs.cc +++ b/components/brave_wallet/browser/brave_wallet_prefs.cc @@ -194,8 +194,6 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { registry->RegisterDictionaryPref(kBraveWalletLastTransactionSentTimeDict); registry->RegisterTimePref(kBraveWalletLastDiscoveredAssetsAt, base::Time()); - registry->RegisterDictionaryPref(kPinnedNFTAssets); - registry->RegisterBooleanPref(kAutoPinEnabled, false); registry->RegisterBooleanPref(kShouldShowWalletSuggestionBadge, true); registry->RegisterBooleanPref(kBraveWalletNftDiscoveryEnabled, false); registry->RegisterBooleanPref(kBraveWalletPrivateWindowsEnabled, false); diff --git a/components/brave_wallet/browser/pref_names.h b/components/brave_wallet/browser/pref_names.h index f949f147ff8f..1093e72ac87a 100644 --- a/components/brave_wallet/browser/pref_names.h +++ b/components/brave_wallet/browser/pref_names.h @@ -76,8 +76,6 @@ inline constexpr char kBraveWalletNftDiscoveryEnabled[] = "brave.wallet.nft_discovery_enabled"; inline constexpr char kBraveWalletLastDiscoveredAssetsAt[] = "brave.wallet.last_discovered_assets_at"; -inline constexpr char kPinnedNFTAssets[] = "brave.wallet.user_pin_data"; -inline constexpr char kAutoPinEnabled[] = "brave.wallet.auto_pin_enabled"; inline constexpr char kBraveWalletPrivateWindowsEnabled[] = "brave.wallet.private_windows_enabled"; inline constexpr char kBraveWalletTransactionSimulationOptInStatus[] = diff --git a/components/brave_wallet/common/features.cc b/components/brave_wallet/common/features.cc index 3e2135601773..f9effdb81845 100644 --- a/components/brave_wallet/common/features.cc +++ b/components/brave_wallet/common/features.cc @@ -15,15 +15,6 @@ BASE_FEATURE(kNativeBraveWalletFeature, "NativeBraveWallet", base::FEATURE_ENABLED_BY_DEFAULT); -BASE_FEATURE(kBraveWalletNftPinningFeature, - "BraveWalletNftPinning", -#if BUILDFLAG(IS_ANDROID) - base::FEATURE_DISABLED_BY_DEFAULT -#else - base::FEATURE_ENABLED_BY_DEFAULT -#endif -); - BASE_FEATURE(kBraveWalletBitcoinFeature, "BraveWalletBitcoin", base::FEATURE_ENABLED_BY_DEFAULT diff --git a/components/brave_wallet/common/features.h b/components/brave_wallet/common/features.h index b49534e02904..3c068026e5b1 100644 --- a/components/brave_wallet/common/features.h +++ b/components/brave_wallet/common/features.h @@ -13,7 +13,6 @@ namespace brave_wallet { namespace features { BASE_DECLARE_FEATURE(kNativeBraveWalletFeature); -BASE_DECLARE_FEATURE(kBraveWalletNftPinningFeature); BASE_DECLARE_FEATURE(kBraveWalletBitcoinFeature); extern const base::FeatureParam kBitcoinRpcThrottle; extern const base::FeatureParam kBitcoinTestnetDiscovery; diff --git a/ios/browser/api/features/features.h b/ios/browser/api/features/features.h index 2010a416605e..303a521abc89 100644 --- a/ios/browser/api/features/features.h +++ b/ios/browser/api/features/features.h @@ -56,7 +56,6 @@ OBJC_EXPORT @property(class, nonatomic, readonly) Feature* kBraveSync; @property(class, nonatomic, readonly) Feature* kBraveWalletAnkrBalancesFeature; @property(class, nonatomic, readonly) Feature* kBraveWalletBitcoinFeature; -@property(class, nonatomic, readonly) Feature* kBraveWalletNftPinningFeature; @property(class, nonatomic, readonly) Feature* kBraveWalletZCashFeature; @property(class, nonatomic, readonly) Feature* kConstellation; @property(class, nonatomic, readonly) Feature* kConstellationEnclaveAttestation; diff --git a/ios/browser/api/features/features.mm b/ios/browser/api/features/features.mm index e8100351da0b..0d748e21c0c0 100644 --- a/ios/browser/api/features/features.mm +++ b/ios/browser/api/features/features.mm @@ -221,11 +221,6 @@ + (Feature*)kBraveWalletBitcoinFeature { initWithFeature:&brave_wallet::features::kBraveWalletBitcoinFeature]; } -+ (Feature*)kBraveWalletNftPinningFeature { - return [[Feature alloc] - initWithFeature:&brave_wallet::features::kBraveWalletNftPinningFeature]; -} - + (Feature*)kBraveWalletZCashFeature { return [[Feature alloc] initWithFeature:&brave_wallet::features::kBraveWalletZCashFeature]; diff --git a/ios/browser/flags/about_flags.mm b/ios/browser/flags/about_flags.mm index ea472965fb7b..cf24d6c955ed 100644 --- a/ios/browser/flags/about_flags.mm +++ b/ios/browser/flags/about_flags.mm @@ -54,14 +54,6 @@ #define BRAVE_NATIVE_WALLET_FEATURE_ENTRIES \ EXPAND_FEATURE_ENTRIES( \ - { \ - "enable-nft-pinning", \ - "Enable NFT pinning", \ - "Enable NFT pinning for Brave Wallet", \ - flags_ui::kOsIos, \ - FEATURE_VALUE_TYPE( \ - brave_wallet::features::kBraveWalletNftPinningFeature), \ - }, \ { \ "brave-wallet-zcash", \ "Enable BraveWallet ZCash support", \