| 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/metrics_service_client.h" | 5 #include "components/metrics/metrics_service_client.h" |
| 6 | 6 |
| 7 #include "components/metrics/url_constants.h" | 7 #include "components/metrics/url_constants.h" |
| 8 | 8 |
| 9 namespace metrics { | 9 namespace metrics { |
| 10 | 10 |
| 11 MetricsServiceClient::MetricsServiceClient() : update_running_services_() {} |
| 12 |
| 13 MetricsServiceClient::~MetricsServiceClient() {} |
| 14 |
| 11 ukm::UkmService* MetricsServiceClient::GetUkmService() { | 15 ukm::UkmService* MetricsServiceClient::GetUkmService() { |
| 12 return nullptr; | 16 return nullptr; |
| 13 } | 17 } |
| 14 | 18 |
| 15 base::string16 MetricsServiceClient::GetRegistryBackupKey() { | 19 base::string16 MetricsServiceClient::GetRegistryBackupKey() { |
| 16 return base::string16(); | 20 return base::string16(); |
| 17 } | 21 } |
| 18 | 22 |
| 19 bool MetricsServiceClient::IsReportingPolicyManaged() { | 23 bool MetricsServiceClient::IsReportingPolicyManaged() { |
| 20 return false; | 24 return false; |
| 21 } | 25 } |
| 22 | 26 |
| 23 EnableMetricsDefault MetricsServiceClient::GetMetricsReportingDefaultState() { | 27 EnableMetricsDefault MetricsServiceClient::GetMetricsReportingDefaultState() { |
| 24 return EnableMetricsDefault::DEFAULT_UNKNOWN; | 28 return EnableMetricsDefault::DEFAULT_UNKNOWN; |
| 25 } | 29 } |
| 26 | 30 |
| 27 bool MetricsServiceClient::IsUMACellularUploadLogicEnabled() { | 31 bool MetricsServiceClient::IsUMACellularUploadLogicEnabled() { |
| 28 return false; | 32 return false; |
| 29 } | 33 } |
| 30 | 34 |
| 31 std::string MetricsServiceClient::GetMetricsServerUrl() { | 35 std::string MetricsServiceClient::GetMetricsServerUrl() { |
| 32 return metrics::kDefaultMetricsServerUrl; | 36 return metrics::kDefaultMetricsServerUrl; |
| 33 } | 37 } |
| 34 | 38 |
| 39 bool MetricsServiceClient::IsHistorySyncEnabledOnAllProfiles() { |
| 40 return false; |
| 41 } |
| 42 |
| 43 void MetricsServiceClient::SetUpdateRunningServicesCallback( |
| 44 const base::Closure& callback) { |
| 45 update_running_services_ = callback; |
| 46 } |
| 47 |
| 35 } // namespace metrics | 48 } // namespace metrics |
| OLD | NEW |