| 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/macros.h" |
| 8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram_macros.h" |
| 9 #include "url/gurl.h" | 9 #include "url/gurl.h" |
| 10 | 10 |
| 11 namespace { | 11 namespace { |
| 12 | 12 |
| 13 // 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, |
| 14 // 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 |
| 15 enum Scheme { | 15 enum Scheme { |
| 16 SCHEME_UNKNOWN, | 16 SCHEME_UNKNOWN, |
| 17 SCHEME_HTTP, | 17 SCHEME_HTTP, |
| 18 SCHEME_HTTPS, | 18 SCHEME_HTTPS, |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 } | 70 } |
| 71 | 71 |
| 72 UMA_HISTOGRAM_ENUMERATION("Navigation.MainFrameScheme", scheme, SCHEME_MAX); | 72 UMA_HISTOGRAM_ENUMERATION("Navigation.MainFrameScheme", scheme, SCHEME_MAX); |
| 73 if (!is_in_page) { | 73 if (!is_in_page) { |
| 74 UMA_HISTOGRAM_ENUMERATION("Navigation.MainFrameSchemeDifferentPage", scheme, | 74 UMA_HISTOGRAM_ENUMERATION("Navigation.MainFrameSchemeDifferentPage", scheme, |
| 75 SCHEME_MAX); | 75 SCHEME_MAX); |
| 76 } | 76 } |
| 77 } | 77 } |
| 78 | 78 |
| 79 } // namespace navigation_metrics | 79 } // namespace navigation_metrics |
| OLD | NEW |