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

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

Issue 1411593004: Eliminate //chrome dependencies from MetricsServicesManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix official build Created 5 years, 2 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
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/callback.h" 7 #include "base/callback.h"
8 #include "components/metrics/metrics_log_uploader.h" 8 #include "components/metrics/metrics_log_uploader.h"
9 #include "components/metrics/proto/chrome_user_metrics_extension.pb.h" 9 #include "components/metrics/proto/chrome_user_metrics_extension.pb.h"
10 10
11 namespace metrics { 11 namespace metrics {
12 12
13 // static 13 // static
14 const char TestMetricsServiceClient::kBrandForTesting[] = "brand_for_testing"; 14 const char TestMetricsServiceClient::kBrandForTesting[] = "brand_for_testing";
15 15
16 TestMetricsServiceClient::TestMetricsServiceClient() 16 TestMetricsServiceClient::TestMetricsServiceClient()
17 : version_string_("5.0.322.0-64-devel"), 17 : version_string_("5.0.322.0-64-devel"),
18 product_(ChromeUserMetricsExtension::CHROME) { 18 product_(ChromeUserMetricsExtension::CHROME) {
19 } 19 }
20 20
21 TestMetricsServiceClient::~TestMetricsServiceClient() { 21 TestMetricsServiceClient::~TestMetricsServiceClient() {
22 } 22 }
23 23
24 metrics::MetricsService* TestMetricsServiceClient::GetMetricsService() {
25 return nullptr;
26 }
27
24 void TestMetricsServiceClient::SetMetricsClientId( 28 void TestMetricsServiceClient::SetMetricsClientId(
25 const std::string& client_id) { 29 const std::string& client_id) {
26 client_id_ = client_id; 30 client_id_ = client_id;
27 } 31 }
28 32
29 void TestMetricsServiceClient::OnRecordingDisabled() { 33 void TestMetricsServiceClient::OnRecordingDisabled() {
30 } 34 }
31 35
32 bool TestMetricsServiceClient::IsOffTheRecordSessionActive() { 36 bool TestMetricsServiceClient::IsOffTheRecordSessionActive() {
33 return false; 37 return false;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 scoped_ptr<MetricsLogUploader> TestMetricsServiceClient::CreateUploader( 74 scoped_ptr<MetricsLogUploader> TestMetricsServiceClient::CreateUploader(
71 const base::Callback<void(int)>& on_upload_complete) { 75 const base::Callback<void(int)>& on_upload_complete) {
72 return scoped_ptr<MetricsLogUploader>(); 76 return scoped_ptr<MetricsLogUploader>();
73 } 77 }
74 78
75 base::TimeDelta TestMetricsServiceClient::GetStandardUploadInterval() { 79 base::TimeDelta TestMetricsServiceClient::GetStandardUploadInterval() {
76 return base::TimeDelta::FromMinutes(5); 80 return base::TimeDelta::FromMinutes(5);
77 } 81 }
78 82
79 } // namespace metrics 83 } // namespace metrics
OLDNEW
« no previous file with comments | « components/metrics/test_metrics_service_client.h ('k') | ios/chrome/browser/metrics/ios_chrome_metrics_service_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698