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

Side by Side Diff: components/metrics/test_metrics_service_client.cc

Issue 293023005: Move MetricsService final log collection tasks to client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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/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
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
OLDNEW
« chrome/browser/metrics/metrics_service.cc ('K') | « components/metrics/test_metrics_service_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698