OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ |
| 6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/basictypes.h" |
| 11 #include "components/metrics/metrics_service_client.h" |
| 12 |
| 13 // ChromeMetricsServiceClient provides an implementation of MetricsServiceClient |
| 14 // that depends on chrome/. |
| 15 class ChromeMetricsServiceClient : metrics::MetricsServiceClient { |
| 16 public: |
| 17 ChromeMetricsServiceClient(); |
| 18 virtual ~ChromeMetricsServiceClient(); |
| 19 |
| 20 // metrics::MetricsServiceClient: |
| 21 virtual void SetClientID(const std::string& client_id) OVERRIDE; |
| 22 virtual bool IsOffTheRecordSessionActive() OVERRIDE; |
| 23 virtual std::string GetApplicationLocale() OVERRIDE; |
| 24 virtual bool GetBrand(std::string* brand_code) OVERRIDE; |
| 25 virtual metrics::SystemProfileProto::Channel GetChannel() OVERRIDE; |
| 26 virtual std::string GetVersionString() OVERRIDE; |
| 27 |
| 28 private: |
| 29 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); |
| 30 }; |
| 31 |
| 32 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ |
OLD | NEW |