Index: chrome/browser/ui/autofill/new_credit_card_bubble_controller.cc |
diff --git a/chrome/browser/ui/autofill/new_credit_card_bubble_controller.cc b/chrome/browser/ui/autofill/new_credit_card_bubble_controller.cc |
index e408068bf1b6fca08fa11c0fd5526f475a777ed3..8933a21a9a22f49ff03e627289110d01b2378ad2 100644 |
--- a/chrome/browser/ui/autofill/new_credit_card_bubble_controller.cc |
+++ b/chrome/browser/ui/autofill/new_credit_card_bubble_controller.cc |
@@ -62,11 +62,7 @@ void NewCreditCardBubbleController::OnBubbleDestroyed() { |
} |
void NewCreditCardBubbleController::OnLinkClicked() { |
- Browser* browser = chrome::FindTabbedBrowser(profile_, false, |
- chrome::GetActiveDesktop()); |
- if (browser) |
- chrome::ShowSettingsSubPage(browser, chrome::kAutofillSubPage); |
- |
+ chrome::ShowSettingsSubPageForProfile(profile_, chrome::kAutofillSubPage); |
Hide(); |
} |