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; |