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

Side by Side Diff: components/google/core/browser/google_search_metrics.cc

Issue 1178683009: Change histogram.h includes to histogram_macros.h in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/google/core/browser/google_search_metrics.h" 5 #include "components/google/core/browser/google_search_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 9
10 GoogleSearchMetrics::GoogleSearchMetrics() { 10 GoogleSearchMetrics::GoogleSearchMetrics() {
11 } 11 }
12 12
13 GoogleSearchMetrics::~GoogleSearchMetrics() { 13 GoogleSearchMetrics::~GoogleSearchMetrics() {
14 } 14 }
15 15
16 void GoogleSearchMetrics::RecordGoogleSearch(AccessPoint ap) const { 16 void GoogleSearchMetrics::RecordGoogleSearch(AccessPoint ap) const {
17 DCHECK_NE(AP_BOUNDARY, ap); 17 DCHECK_NE(AP_BOUNDARY, ap);
18 UMA_HISTOGRAM_ENUMERATION("GoogleSearch.AccessPoint", ap, AP_BOUNDARY); 18 UMA_HISTOGRAM_ENUMERATION("GoogleSearch.AccessPoint", ap, AP_BOUNDARY);
19 } 19 }
20 20
21 #if defined(OS_ANDROID) 21 #if defined(OS_ANDROID)
22 void GoogleSearchMetrics::RecordAndroidGoogleSearch( 22 void GoogleSearchMetrics::RecordAndroidGoogleSearch(
23 AccessPoint ap, 23 AccessPoint ap,
24 bool prerender_enabled) const { 24 bool prerender_enabled) const {
25 DCHECK_NE(AP_BOUNDARY, ap); 25 DCHECK_NE(AP_BOUNDARY, ap);
26 if (prerender_enabled) { 26 if (prerender_enabled) {
27 UMA_HISTOGRAM_ENUMERATION("GoogleSearch.AccessPoint_PrerenderEnabled", 27 UMA_HISTOGRAM_ENUMERATION("GoogleSearch.AccessPoint_PrerenderEnabled",
28 ap, AP_BOUNDARY); 28 ap, AP_BOUNDARY);
29 } else { 29 } else {
30 UMA_HISTOGRAM_ENUMERATION("GoogleSearch.AccessPoint_PrerenderDisabled", 30 UMA_HISTOGRAM_ENUMERATION("GoogleSearch.AccessPoint_PrerenderDisabled",
31 ap, AP_BOUNDARY); 31 ap, AP_BOUNDARY);
32 } 32 }
33 } 33 }
34 #endif 34 #endif
OLDNEW
« no previous file with comments | « components/gcm_driver/gcm_stats_recorder_impl.cc ('k') | components/history/core/browser/history_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698