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

Side by Side Diff: components/autofill/core/browser/autofill_metrics.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, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 int64_t MillisecondsSinceFormLoaded() const; 638 int64_t MillisecondsSinceFormLoaded() const;
639 void GetNewSourceID(); 639 void GetNewSourceID();
640 640
641 ukm::UkmService* ukm_service_; // Weak reference. 641 ukm::UkmService* ukm_service_; // Weak reference.
642 int32_t source_id_ = -1; 642 int32_t source_id_ = -1;
643 GURL url_; 643 GURL url_;
644 base::TimeTicks form_loaded_timestamp_; 644 base::TimeTicks form_loaded_timestamp_;
645 }; 645 };
646 646
647 static void LogCardUploadDecisionMetric(CardUploadDecisionMetric metric); 647 static void LogCardUploadDecisionMetric(CardUploadDecisionMetric metric);
648 static void LogCreditCardInfoBarMetric(InfoBarMetric metric, 648 static void LogCreditCardInfoBarMetric(
649 bool is_uploading); 649 InfoBarMetric metric,
650 bool is_uploading,
651 bool did_user_accept_previous_save_credit_card_prompt);
650 static void LogCreditCardFillingInfoBarMetric(InfoBarMetric metric); 652 static void LogCreditCardFillingInfoBarMetric(InfoBarMetric metric);
651 static void LogSaveCardPromptMetric(SaveCardPromptMetric metric, 653 static void LogSaveCardPromptMetric(
652 bool is_uploading, 654 SaveCardPromptMetric metric,
653 bool is_reshow); 655 bool is_uploading,
656 bool is_reshow,
657 bool did_user_accept_previous_save_credit_card_prompt);
654 static void LogScanCreditCardPromptMetric(ScanCreditCardPromptMetric metric); 658 static void LogScanCreditCardPromptMetric(ScanCreditCardPromptMetric metric);
655 659
656 // Should be called when credit card scan is finished. |duration| should be 660 // Should be called when credit card scan is finished. |duration| should be
657 // the time elapsed between launching the credit card scanner and getting back 661 // the time elapsed between launching the credit card scanner and getting back
658 // the result. |completed| should be true if a credit card was scanned, false 662 // the result. |completed| should be true if a credit card was scanned, false
659 // if the scan was cancelled. 663 // if the scan was cancelled.
660 static void LogScanCreditCardCompleted(const base::TimeDelta& duration, 664 static void LogScanCreditCardCompleted(const base::TimeDelta& duration,
661 bool completed); 665 bool completed);
662 666
663 static void LogDeveloperEngagementMetric(DeveloperEngagementMetric metric); 667 static void LogDeveloperEngagementMetric(DeveloperEngagementMetric metric);
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 form_interactions_ukm_logger_; // Weak reference. 884 form_interactions_ukm_logger_; // Weak reference.
881 }; 885 };
882 886
883 private: 887 private:
884 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); 888 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics);
885 }; 889 };
886 890
887 } // namespace autofill 891 } // namespace autofill
888 892
889 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ 893 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698