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

Side by Side Diff: components/navigation_metrics/navigation_metrics.cc

Issue 2479093002: Migrate more files to histogram_macros.h from histogram.h. (Closed)
Patch Set: Created 4 years, 1 month 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 #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
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
OLDNEW
« no previous file with comments | « components/metrics/metrics_log.cc ('k') | components/policy/core/common/cloud/device_management_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698