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

Side by Side Diff: components/autofill/core/browser/autofill_metrics.h

Issue 2434543003: [Autofill] Separate Autofill.CreditCardInfoBar into .Local and .Server (Closed)
Patch Set: Add base=true value to histogram Created 4 years, 2 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 10
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 UPDATE_EXPIRATION_DATE, 505 UPDATE_EXPIRATION_DATE,
506 UPGRADE_MIN_ADDRESS, 506 UPGRADE_MIN_ADDRESS,
507 CHOOSE_ANOTHER_INSTRUMENT_OR_ADDRESS, 507 CHOOSE_ANOTHER_INSTRUMENT_OR_ADDRESS,
508 VERIFY_CVV, 508 VERIFY_CVV,
509 INVALID_FORM_FIELD, 509 INVALID_FORM_FIELD,
510 REQUIRE_PHONE_NUMBER, 510 REQUIRE_PHONE_NUMBER,
511 NUM_WALLET_REQUIRED_ACTIONS 511 NUM_WALLET_REQUIRED_ACTIONS
512 }; 512 };
513 513
514 static void LogCardUploadDecisionMetric(CardUploadDecisionMetric metric); 514 static void LogCardUploadDecisionMetric(CardUploadDecisionMetric metric);
515 static void LogCreditCardInfoBarMetric(InfoBarMetric metric); 515 static void LogCreditCardInfoBarMetric(InfoBarMetric metric,
516 bool is_uploading);
516 static void LogCreditCardFillingInfoBarMetric(InfoBarMetric metric); 517 static void LogCreditCardFillingInfoBarMetric(InfoBarMetric metric);
517 static void LogSaveCardPromptMetric(SaveCardPromptMetric metric, 518 static void LogSaveCardPromptMetric(SaveCardPromptMetric metric,
518 bool is_uploading, 519 bool is_uploading,
519 bool is_reshow); 520 bool is_reshow);
520 static void LogScanCreditCardPromptMetric(ScanCreditCardPromptMetric metric); 521 static void LogScanCreditCardPromptMetric(ScanCreditCardPromptMetric metric);
521 522
522 // Should be called when credit card scan is finished. |duration| should be 523 // Should be called when credit card scan is finished. |duration| should be
523 // the time elapsed between launching the credit card scanner and getting back 524 // the time elapsed between launching the credit card scanner and getting back
524 // the result. |completed| should be true if a credit card was scanned, false 525 // the result. |completed| should be true if a credit card was scanned, false
525 // if the scan was cancelled. 526 // if the scan was cancelled.
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 FormFieldData last_polled_field_; 707 FormFieldData last_polled_field_;
707 }; 708 };
708 709
709 private: 710 private:
710 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); 711 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics);
711 }; 712 };
712 713
713 } // namespace autofill 714 } // namespace autofill
714 715
715 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ 716 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698