Skip to content

Commit

Permalink
removed ipfs pin and autopin for NFT #1
Browse files Browse the repository at this point in the history
Signed-off-by: Vadym Struts <vstruts@brave.com>
  • Loading branch information
vadimstruts committed May 8, 2024
1 parent d3c2d5d commit b237fe8
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 52 deletions.
3 changes: 0 additions & 3 deletions app/brave_settings_strings.grdp
Original file line number Diff line number Diff line change
Expand Up @@ -1158,9 +1158,6 @@
<message name="IDS_SETTINGS_WALLET_RESET_CONFIRMATION" desc="Reset wallet settings confirmation message text">
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 "<ph name="CONFIRMATION_PHRASE">$1<ex>Yes</ex></ph>" to confirm.
</message>
<message name="IDS_SETTINGS_WALLET_CLEAR_PINNED_NFT_CONFIRMATION" desc="Clear pinned NFTs confirmation message text">
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 "<ph name="CONFIRMATION_PHRASE">$1<ex>Yes</ex></ph>" to confirm.
</message>
<message name="IDS_SETTINGS_WALLET_RESET_CONFIRMED" desc="Reset wallet settings confirmed message text">
Your wallet was reset.
</message>
Expand Down
8 changes: 0 additions & 8 deletions browser/about_flags.cc
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,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", \
Expand Down
3 changes: 0 additions & 3 deletions browser/extensions/api/settings_private/brave_prefs_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,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] =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,6 @@ class SettingsBraveWalletPage extends SettingsBraveWalletPageBase {
}
}

static get observers(){
return [
'onShowOptionChanged_(prefs.brave.wallet.auto_pin_enabled.value)'
]
}

browserProxy_ = BraveWalletBrowserProxyImpl.getInstance()

ready() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -762,10 +762,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
Expand Down
2 changes: 0 additions & 2 deletions components/brave_wallet/browser/brave_wallet_prefs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,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);
Expand Down
2 changes: 0 additions & 2 deletions components/brave_wallet/browser/pref_names.h
Original file line number Diff line number Diff line change
Expand Up @@ -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[] =
Expand Down
9 changes: 0 additions & 9 deletions components/brave_wallet/common/features.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,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",
#if BUILDFLAG(ENABLE_BITCOIN_BY_DEFAULT)
Expand Down
1 change: 0 additions & 1 deletion components/brave_wallet/common/features.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<int> kBitcoinRpcThrottle;
extern const base::FeatureParam<bool> kBitcoinTestnetDiscovery;
Expand Down
1 change: 0 additions & 1 deletion ios/browser/api/features/features.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,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;
Expand Down
5 changes: 0 additions & 5 deletions ios/browser/api/features/features.mm
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,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];
Expand Down
8 changes: 0 additions & 8 deletions ios/browser/flags/about_flags.mm
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,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", \
Expand Down

0 comments on commit b237fe8

Please sign in to comment.