Chromium Code Reviews| Index: chrome/browser/ui/autofill/chrome_autofill_client.cc |
| diff --git a/chrome/browser/ui/autofill/chrome_autofill_client.cc b/chrome/browser/ui/autofill/chrome_autofill_client.cc |
| index 3b8ec54b2b139c17be2eddc36c875b5bc3502f27..cd0b09612f6a4d017b45276186c79819dcdb8836 100644 |
| --- a/chrome/browser/ui/autofill/chrome_autofill_client.cc |
| +++ b/chrome/browser/ui/autofill/chrome_autofill_client.cc |
| @@ -65,21 +65,6 @@ DEFINE_WEB_CONTENTS_USER_DATA_KEY(autofill::ChromeAutofillClient); |
| namespace autofill { |
| -namespace { |
| - |
| -#if !defined(OS_ANDROID) |
| -bool IsSaveCardBubbleEnabled() { |
| -#if defined(OS_MACOSX) |
| - return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| - switches::kEnableSaveCardBubble); |
| -#else |
| - return true; |
| -#endif |
| -} |
| -#endif // !defined(OS_ANDROID) |
| - |
| -} // namespace |
| - |
| ChromeAutofillClient::ChromeAutofillClient(content::WebContents* web_contents) |
| : content::WebContentsObserver(web_contents), |
| unmask_controller_( |
| @@ -197,18 +182,12 @@ void ChromeAutofillClient::ConfirmSaveCreditCardLocally( |
| false, card, scoped_ptr<base::DictionaryValue>(nullptr), |
| callback)))); |
| #else |
| - if (IsSaveCardBubbleEnabled()) { |
| - // Do lazy initialization of SaveCardBubbleControllerImpl. |
| - autofill::SaveCardBubbleControllerImpl::CreateForWebContents( |
| - web_contents()); |
| - autofill::SaveCardBubbleControllerImpl* controller = |
| - autofill::SaveCardBubbleControllerImpl::FromWebContents(web_contents()); |
| - controller->ShowBubbleForLocalSave(card, callback); |
| - return; |
| - } |
| - |
| - AutofillCCInfoBarDelegate::CreateForLocalSave( |
|
Evan Stade
2016/03/07 22:42:03
do you still need this fn for something? Do you ne
Justin Donnelly
2016/03/07 23:14:41
Hmm, good point. we don't need CreateForLocalSave
|
| - InfoBarService::FromWebContents(web_contents()), callback); |
| + // Do lazy initialization of SaveCardBubbleControllerImpl. |
| + autofill::SaveCardBubbleControllerImpl::CreateForWebContents( |
| + web_contents()); |
| + autofill::SaveCardBubbleControllerImpl* controller = |
| + autofill::SaveCardBubbleControllerImpl::FromWebContents(web_contents()); |
| + controller->ShowBubbleForLocalSave(card, callback); |
| #endif |
| } |