OLD | NEW |
---|---|
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/metrics/test_metrics_service_client.h" | 5 #include "components/metrics/test_metrics_service_client.h" |
6 | 6 |
7 #include "base/bind.h" | |
Ilya Sherman
2014/05/21 13:37:07
nit: base/callback.h
Alexei Svitkine (slow)
2014/05/21 14:20:15
Done.
| |
8 | |
7 namespace metrics { | 9 namespace metrics { |
8 | 10 |
9 TestMetricsServiceClient::TestMetricsServiceClient() { | 11 TestMetricsServiceClient::TestMetricsServiceClient() { |
10 } | 12 } |
11 | 13 |
12 TestMetricsServiceClient::~TestMetricsServiceClient() { | 14 TestMetricsServiceClient::~TestMetricsServiceClient() { |
13 } | 15 } |
14 | 16 |
15 void TestMetricsServiceClient::SetClientID(const std::string& client_id) { | 17 void TestMetricsServiceClient::SetClientID(const std::string& client_id) { |
16 client_id_ = client_id; | 18 client_id_ = client_id; |
(...skipping 13 matching lines...) Expand all Loading... | |
30 } | 32 } |
31 | 33 |
32 SystemProfileProto::Channel TestMetricsServiceClient::GetChannel() { | 34 SystemProfileProto::Channel TestMetricsServiceClient::GetChannel() { |
33 return SystemProfileProto::CHANNEL_BETA; | 35 return SystemProfileProto::CHANNEL_BETA; |
34 } | 36 } |
35 | 37 |
36 std::string TestMetricsServiceClient::GetVersionString() { | 38 std::string TestMetricsServiceClient::GetVersionString() { |
37 return "5.0.322.0-64-devel"; | 39 return "5.0.322.0-64-devel"; |
38 } | 40 } |
39 | 41 |
42 void TestMetricsServiceClient::OnFinalLogCollection( | |
43 const base::Closure& done_callback) { | |
44 done_callback.Run(); | |
45 } | |
46 | |
40 } // namespace metrics | 47 } // namespace metrics |
OLD | NEW |