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

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

Issue 2839683002: Logs different SaveCardPrompt histogram names depending on if user (Closed)
Patch Set: Android compile error. Created 3 years, 8 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 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_;

Powered by Google App Engine
This is Rietveld 408576698