blob: 577db281b2452bd27dac476a3c31d63810467af5 [file] [log] [blame]
[email protected]728de072014-05-21 09:20:321// 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#include "components/metrics/test_metrics_service_client.h"
6
7namespace metrics {
8
9TestMetricsServiceClient::TestMetricsServiceClient() {
10}
11
12TestMetricsServiceClient::~TestMetricsServiceClient() {
13}
14
15void TestMetricsServiceClient::SetClientID(const std::string& client_id) {
16 client_id_ = client_id;
17}
18
19bool TestMetricsServiceClient::IsOffTheRecordSessionActive() {
20 return false;
21}
22
23std::string TestMetricsServiceClient::GetApplicationLocale() {
24 return "en-US";
25}
26
27bool TestMetricsServiceClient::GetBrand(std::string* brand_code) {
28 *brand_code = "BRAND_CODE";
29 return true;
30}
31
32SystemProfileProto::Channel TestMetricsServiceClient::GetChannel() {
33 return SystemProfileProto::CHANNEL_BETA;
34}
35
36std::string TestMetricsServiceClient::GetVersionString() {
37 return "5.0.322.0-64-devel";
38}
39
40} // namespace metrics