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

Unified Diff: components/autofill/core/browser/autofill_save_card_infobar_delegate_mobile.h

Issue 2945563003: AutofillSaveCardInfoBar on mobile should not appear when legal messages don't parse correctly (Closed)
Patch Set: Code review changes Created 3 years, 6 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_save_card_infobar_delegate_mobile.h
diff --git a/components/autofill/core/browser/autofill_save_card_infobar_delegate_mobile.h b/components/autofill/core/browser/autofill_save_card_infobar_delegate_mobile.h
index d1a0d2297b8be651f8e53a7ce59c01caeab6f5d2..8b933018107e37c445104c7341605ed1c1d13f94 100644
--- a/components/autofill/core/browser/autofill_save_card_infobar_delegate_mobile.h
+++ b/components/autofill/core/browser/autofill_save_card_infobar_delegate_mobile.h
@@ -45,6 +45,10 @@ class AutofillSaveCardInfoBarDelegateMobile : public ConfirmInfoBarDelegate {
// Called when a link in the legal message text was clicked.
void OnLegalMessageLinkClicked(GURL url);
+ // Ensures the InfoBar is not shown if legal messages failed to parse.
+ // Legal messages are only specified for the upload case, not for local save.
+ bool LegalMessagesParsedSuccessfully();
+
// ConfirmInfoBarDelegate:
int GetIconId() const override;
base::string16 GetMessageText() const override;

Powered by Google App Engine
This is Rietveld 408576698