OLD | NEW |
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 #include "components/autofill/core/browser/autofill_metrics.h" | 5 #include "components/autofill/core/browser/autofill_metrics.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "base/metrics/sparse_histogram.h" | 9 #include "base/metrics/sparse_histogram.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 const base::TimeDelta& duration) { | 449 const base::TimeDelta& duration) { |
450 UMA_HISTOGRAM_CUSTOM_TIMES( | 450 UMA_HISTOGRAM_CUSTOM_TIMES( |
451 "Autofill.FillDuration.FromInteraction.WithoutAutofill", | 451 "Autofill.FillDuration.FromInteraction.WithoutAutofill", |
452 duration, | 452 duration, |
453 base::TimeDelta::FromMilliseconds(100), | 453 base::TimeDelta::FromMilliseconds(100), |
454 base::TimeDelta::FromMinutes(10), | 454 base::TimeDelta::FromMinutes(10), |
455 50); | 455 50); |
456 } | 456 } |
457 | 457 |
458 // static | 458 // static |
| 459 void AutofillMetrics::LogIsFormUserSubmitted(bool user_submitted) { |
| 460 UMA_HISTOGRAM_BOOLEAN("Autofill.IsFormUserSubmitted", user_submitted); |
| 461 } |
| 462 |
| 463 // static |
459 void AutofillMetrics::LogIsAutofillEnabledAtStartup(bool enabled) { | 464 void AutofillMetrics::LogIsAutofillEnabledAtStartup(bool enabled) { |
460 UMA_HISTOGRAM_BOOLEAN("Autofill.IsEnabled.Startup", enabled); | 465 UMA_HISTOGRAM_BOOLEAN("Autofill.IsEnabled.Startup", enabled); |
461 } | 466 } |
462 | 467 |
463 // static | 468 // static |
464 void AutofillMetrics::LogIsAutofillEnabledAtPageLoad(bool enabled) { | 469 void AutofillMetrics::LogIsAutofillEnabledAtPageLoad(bool enabled) { |
465 UMA_HISTOGRAM_BOOLEAN("Autofill.IsEnabled.PageLoad", enabled); | 470 UMA_HISTOGRAM_BOOLEAN("Autofill.IsEnabled.PageLoad", enabled); |
466 } | 471 } |
467 | 472 |
468 // static | 473 // static |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
604 else if (is_server_data_available_ && !is_local_data_available_) | 609 else if (is_server_data_available_ && !is_local_data_available_) |
605 name += ".WithOnlyServerData"; | 610 name += ".WithOnlyServerData"; |
606 else if (!is_server_data_available_ && is_local_data_available_) | 611 else if (!is_server_data_available_ && is_local_data_available_) |
607 name += ".WithOnlyLocalData"; | 612 name += ".WithOnlyLocalData"; |
608 else | 613 else |
609 name += ".WithBothServerAndLocalData"; | 614 name += ".WithBothServerAndLocalData"; |
610 LogUMAHistogramEnumeration(name, event, NUM_FORM_EVENTS); | 615 LogUMAHistogramEnumeration(name, event, NUM_FORM_EVENTS); |
611 } | 616 } |
612 | 617 |
613 } // namespace autofill | 618 } // namespace autofill |
OLD | NEW |