| Index: chrome/browser/autofill/autofill_cc_infobar_delegate.cc
|
| ===================================================================
|
| --- chrome/browser/autofill/autofill_cc_infobar_delegate.cc (revision 174909)
|
| +++ chrome/browser/autofill/autofill_cc_infobar_delegate.cc (working copy)
|
| @@ -43,14 +43,6 @@
|
| had_user_interaction_ = true;
|
| }
|
|
|
| -bool AutofillCCInfoBarDelegate::ShouldExpire(
|
| - const content::LoadCommittedDetails& details) const {
|
| - // The user has submitted a form, causing the page to navigate elsewhere. We
|
| - // don't want the infobar to be expired at this point, because the user won't
|
| - // get a chance to answer the question.
|
| - return false;
|
| -}
|
| -
|
| void AutofillCCInfoBarDelegate::InfoBarDismissed() {
|
| LogUserAction(AutofillMetrics::INFOBAR_DENIED);
|
| }
|
| @@ -64,6 +56,14 @@
|
| return PAGE_ACTION_TYPE;
|
| }
|
|
|
| +bool AutofillCCInfoBarDelegate::ShouldExpireInternal(
|
| + const content::LoadCommittedDetails& details) const {
|
| + // The user has submitted a form, causing the page to navigate elsewhere. We
|
| + // don't want the infobar to be expired at this point, because the user won't
|
| + // get a chance to answer the question.
|
| + return false;
|
| +}
|
| +
|
| string16 AutofillCCInfoBarDelegate::GetMessageText() const {
|
| return l10n_util::GetStringUTF16(IDS_AUTOFILL_CC_INFOBAR_TEXT);
|
| }
|
|
|