| 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 d507696c7370fd9e4e559d639b01c48cfe7be431..d1a0d2297b8be651f8e53a7ce59c01caeab6f5d2 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
|
| @@ -14,6 +14,8 @@
|
| #include "components/autofill/core/browser/legal_message_line.h"
|
| #include "components/infobars/core/confirm_infobar_delegate.h"
|
|
|
| +class PrefService;
|
| +
|
| namespace base {
|
| class DictionaryValue;
|
| }
|
| @@ -30,7 +32,8 @@ class AutofillSaveCardInfoBarDelegateMobile : public ConfirmInfoBarDelegate {
|
| bool upload,
|
| const CreditCard& card,
|
| std::unique_ptr<base::DictionaryValue> legal_message,
|
| - const base::Closure& save_card_callback);
|
| + const base::Closure& save_card_callback,
|
| + PrefService* pref_service);
|
|
|
| ~AutofillSaveCardInfoBarDelegateMobile() override;
|
|
|
| @@ -64,6 +67,9 @@ class AutofillSaveCardInfoBarDelegateMobile : public ConfirmInfoBarDelegate {
|
| // The callback to save credit card if the user accepts the infobar.
|
| base::Closure save_card_callback_;
|
|
|
| + // Weak reference to read & write |kAutofillAcceptSaveCreditCardPromptState|,
|
| + PrefService* pref_service_;
|
| +
|
| // Did the user ever explicitly accept or dismiss this infobar?
|
| bool had_user_interaction_;
|
|
|
|
|