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/navigation_metrics/navigation_metrics.h" | 5 #include "components/navigation_metrics/navigation_metrics.h" |
6 | 6 |
| 7 #include "base/macros.h" |
7 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
8 #include "url/gurl.h" | 9 #include "url/gurl.h" |
9 | 10 |
10 namespace { | 11 namespace { |
11 | 12 |
12 // This enum is used in building the histogram. So, this is append only, | 13 // This enum is used in building the histogram. So, this is append only, |
13 // any new scheme should be added at the end, before SCHEME_MAX | 14 // any new scheme should be added at the end, before SCHEME_MAX |
14 enum Scheme { | 15 enum Scheme { |
15 SCHEME_UNKNOWN, | 16 SCHEME_UNKNOWN, |
16 SCHEME_HTTP, | 17 SCHEME_HTTP, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 } | 56 } |
56 } | 57 } |
57 UMA_HISTOGRAM_ENUMERATION("Navigation.MainFrameScheme", scheme, SCHEME_MAX); | 58 UMA_HISTOGRAM_ENUMERATION("Navigation.MainFrameScheme", scheme, SCHEME_MAX); |
58 if (!is_in_page) { | 59 if (!is_in_page) { |
59 UMA_HISTOGRAM_ENUMERATION( | 60 UMA_HISTOGRAM_ENUMERATION( |
60 "Navigation.MainFrameSchemeDifferentPage", scheme, SCHEME_MAX); | 61 "Navigation.MainFrameSchemeDifferentPage", scheme, SCHEME_MAX); |
61 } | 62 } |
62 } | 63 } |
63 | 64 |
64 } // namespace navigation_metrics | 65 } // namespace navigation_metrics |
OLD | NEW |