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

Unified Diff: chrome/browser/ui/autofill/save_card_bubble_controller_impl.h

Issue 2839683002: Logs different SaveCardPrompt histogram names depending on if user (Closed)
Patch Set: Uses LogUMAHistogramEnumeration instead of UMA_HISTOGRAM_ENUMERATION because we change histogram na… 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: chrome/browser/ui/autofill/save_card_bubble_controller_impl.h
diff --git a/chrome/browser/ui/autofill/save_card_bubble_controller_impl.h b/chrome/browser/ui/autofill/save_card_bubble_controller_impl.h
index 1f5382fe080b36fd8ff43eaefdae8615d911e65b..2b924ab87d7a7a865ff9ab81c503911c09bf5fc0 100644
--- a/chrome/browser/ui/autofill/save_card_bubble_controller_impl.h
+++ b/chrome/browser/ui/autofill/save_card_bubble_controller_impl.h
@@ -14,6 +14,8 @@
#include "content/public/browser/web_contents_observer.h"
#include "content/public/browser/web_contents_user_data.h"
+class PrefService;
+
namespace autofill {
// Implementation of per-tab class to control the save credit card bubble and
@@ -93,6 +95,9 @@ class SaveCardBubbleControllerImpl
// Weak reference. Will be nullptr if no bubble is currently shown.
SaveCardBubbleView* save_card_bubble_view_;
+ // Weak reference to read & write |kAutofillAcceptSaveCreditCardPromptState|.
+ PrefService* pref_service_;
+
// Callback to run if user presses Save button in the bubble.
// If save_card_callback_.is_null() is true then no bubble is available to
// show and the icon is not visible.

Powered by Google App Engine
This is Rietveld 408576698