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 "chromecast/browser/metrics/cast_metrics_service_client.h" | 5 #include "chromecast/browser/metrics/cast_metrics_service_client.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/guid.h" | 8 #include "base/guid.h" |
9 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 } | 115 } |
116 | 116 |
117 ::metrics::SystemProfileProto::Channel CastMetricsServiceClient::GetChannel() { | 117 ::metrics::SystemProfileProto::Channel CastMetricsServiceClient::GetChannel() { |
118 return GetPlatformReleaseChannel(cast_service_); | 118 return GetPlatformReleaseChannel(cast_service_); |
119 } | 119 } |
120 | 120 |
121 std::string CastMetricsServiceClient::GetVersionString() { | 121 std::string CastMetricsServiceClient::GetVersionString() { |
122 return GetPlatformVersionString(cast_service_); | 122 return GetPlatformVersionString(cast_service_); |
123 } | 123 } |
124 | 124 |
125 void CastMetricsServiceClient::OnLogUploadComplete() { | 125 void CastMetricsServiceClient::OnLogUploadComplete(bool upload_succeeded) { |
126 PlatformOnLogUploadComplete(cast_service_); | 126 PlatformOnLogUploadComplete(cast_service_); |
127 } | 127 } |
128 | 128 |
129 void CastMetricsServiceClient::StartGatheringMetrics( | 129 void CastMetricsServiceClient::StartGatheringMetrics( |
130 const base::Closure& done_callback) { | 130 const base::Closure& done_callback) { |
131 done_callback.Run(); | 131 done_callback.Run(); |
132 } | 132 } |
133 | 133 |
134 void CastMetricsServiceClient::CollectFinalMetrics( | 134 void CastMetricsServiceClient::CollectFinalMetrics( |
135 const base::Closure& done_callback) { | 135 const base::Closure& done_callback) { |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 #endif // defined(OS_LINUX) | 271 #endif // defined(OS_LINUX) |
272 metrics_service_->Stop(); | 272 metrics_service_->Stop(); |
273 } | 273 } |
274 | 274 |
275 bool CastMetricsServiceClient::IsReportingEnabled() { | 275 bool CastMetricsServiceClient::IsReportingEnabled() { |
276 return PlatformIsReportingEnabled(cast_service_); | 276 return PlatformIsReportingEnabled(cast_service_); |
277 } | 277 } |
278 | 278 |
279 } // namespace metrics | 279 } // namespace metrics |
280 } // namespace chromecast | 280 } // namespace chromecast |
OLD | NEW |