1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/google/google_search_metrics.h"
7 #include "base/logging.h"
8 #include "base/metrics/histogram.h"
9 #include "chrome/browser/metrics/metrics_service.h"
11 GoogleSearchMetrics::GoogleSearchMetrics() {
14 GoogleSearchMetrics::~GoogleSearchMetrics() {
17 void GoogleSearchMetrics::RecordGoogleSearch(AccessPoint ap
) const {
18 DCHECK_NE(AP_BOUNDARY
, ap
);
19 UMA_HISTOGRAM_ENUMERATION("GoogleSearch.AccessPoint", ap
, AP_BOUNDARY
);