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

Unified Diff: components/autofill/core/browser/autofill_cc_infobar_delegate.cc

Issue 922953002: Minor infobar cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resync Created 5 years, 10 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: components/autofill/core/browser/autofill_cc_infobar_delegate.cc
diff --git a/components/autofill/core/browser/autofill_cc_infobar_delegate.cc b/components/autofill/core/browser/autofill_cc_infobar_delegate.cc
index 1f2bd3581ccfabb8d4f0330fe426599a0137eacb..dd1566458f0334ef50ff149e75f78b41cb004d11 100644
--- a/components/autofill/core/browser/autofill_cc_infobar_delegate.cc
+++ b/components/autofill/core/browser/autofill_cc_infobar_delegate.cc
@@ -55,12 +55,8 @@ void AutofillCCInfoBarDelegate::InfoBarDismissed() {
LogUserAction(AutofillMetrics::INFOBAR_DENIED);
}
-int AutofillCCInfoBarDelegate::GetIconID() const {
- return IDR_INFOBAR_AUTOFILL_CC;
-}
-
-infobars::InfoBarDelegate::Type AutofillCCInfoBarDelegate::GetInfoBarType()
- const {
+infobars::InfoBarDelegate::Type
+AutofillCCInfoBarDelegate::GetInfoBarType() const {
return PAGE_ACTION_TYPE;
}
@@ -72,6 +68,10 @@ bool AutofillCCInfoBarDelegate::ShouldExpireInternal(
return false;
}
+int AutofillCCInfoBarDelegate::GetIconID() const {
+ return IDR_INFOBAR_AUTOFILL_CC;
+}
+
base::string16 AutofillCCInfoBarDelegate::GetMessageText() const {
return l10n_util::GetStringUTF16(IDS_AUTOFILL_CC_INFOBAR_TEXT);
}

Powered by Google App Engine
This is Rietveld 408576698