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

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

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 12 months 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/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
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
OLDNEW
« no previous file with comments | « components/navigation_interception/intercept_navigation_throttle.h ('k') | components/net_log/chrome_net_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698