Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2042)

Unified Diff: chrome/browser/autofill/autofill_cc_infobar_delegate.cc

Issue 11748012: Minor cleanup to how infobars handle expiry: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}
« no previous file with comments | « chrome/browser/autofill/autofill_cc_infobar_delegate.h ('k') | chrome/browser/chrome_quota_permission_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698