| 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_macros.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" |
| 11 #include "components/autofill/core/browser/autofill_type.h" | 11 #include "components/autofill/core/browser/autofill_type.h" |
| 12 #include "components/autofill/core/browser/form_structure.h" | 12 #include "components/autofill/core/browser/form_structure.h" |
| 13 #include "components/autofill/core/common/form_data.h" | 13 #include "components/autofill/core/common/form_data.h" |
| 14 | 14 |
| 15 namespace autofill { | 15 namespace autofill { |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| (...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 758 else if (is_server_data_available_ && !is_local_data_available_) | 758 else if (is_server_data_available_ && !is_local_data_available_) |
| 759 name += ".WithOnlyServerData"; | 759 name += ".WithOnlyServerData"; |
| 760 else if (!is_server_data_available_ && is_local_data_available_) | 760 else if (!is_server_data_available_ && is_local_data_available_) |
| 761 name += ".WithOnlyLocalData"; | 761 name += ".WithOnlyLocalData"; |
| 762 else | 762 else |
| 763 name += ".WithBothServerAndLocalData"; | 763 name += ".WithBothServerAndLocalData"; |
| 764 LogUMAHistogramEnumeration(name, event, NUM_FORM_EVENTS); | 764 LogUMAHistogramEnumeration(name, event, NUM_FORM_EVENTS); |
| 765 } | 765 } |
| 766 | 766 |
| 767 } // namespace autofill | 767 } // namespace autofill |
| OLD | NEW |