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

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

Issue 949323002: Collecting UMA metrics for the UnmaskPrompt. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/card_unmask_prompt_controller_impl.h
diff --git a/chrome/browser/ui/autofill/card_unmask_prompt_controller_impl.h b/chrome/browser/ui/autofill/card_unmask_prompt_controller_impl.h
index 1df68bade0afdd1411b42f82424633a06cebb3bd..6cadd3fd169b1f3cee244ad988e713e71d55f270 100644
--- a/chrome/browser/ui/autofill/card_unmask_prompt_controller_impl.h
+++ b/chrome/browser/ui/autofill/card_unmask_prompt_controller_impl.h
@@ -45,19 +45,26 @@ class CardUnmaskPromptControllerImpl : public CardUnmaskPromptController {
const base::string16& year) const override;
protected:
+ // Virtual so tests can suppress it.
+ virtual CardUnmaskPromptView* CreateAndShowView();
+ virtual void LoadRiskFingerprint();
+
virtual void OnDidLoadRiskFingerprint(const std::string& risk_data);
// Exposed for testing.
CardUnmaskPromptView* view() { return card_unmask_view_; }
private:
- void LoadRiskFingerprint();
content::WebContents* web_contents_;
CreditCard card_;
base::WeakPtr<CardUnmaskDelegate> delegate_;
CardUnmaskPromptView* card_unmask_view_;
+ bool unmasking_success_;
+ bool unmasking_initial_should_store_pan_;
+ int unmasking_number_of_attempts_;
+
CardUnmaskDelegate::UnmaskResponse pending_response_;
base::WeakPtrFactory<CardUnmaskPromptControllerImpl> weak_pointer_factory_;

Powered by Google App Engine
This is Rietveld 408576698