Skip to content

Commit

Permalink
Merge pull request #4669 from brave/fix-8286
Browse files Browse the repository at this point in the history
Not calling CloseSelectedTabs() in CW reset action
  • Loading branch information
ryanml authored Feb 19, 2020
2 parents 2edb351 + 8e03433 commit 613cff1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions components/brave_wallet/browser/brave_wallet_controller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,6 @@ void BraveWalletController::OnCryptoWalletsReset(bool success) {
}

void BraveWalletController::CloseTabsAndRestart() {
// Close current tab
auto* current_browser =
BrowserList::GetInstance()->GetLastActive();
current_browser->tab_strip_model()->CloseSelectedTabs();
// Close all CW tabs in each browser instance
for (auto* browser : *BrowserList::GetInstance()) {
auto* tab_strip = browser->tab_strip_model();
Expand Down

0 comments on commit 613cff1

Please sign in to comment.