| 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/logging.h" | 10 #include "base/logging.h" |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 } | 160 } |
| 161 | 161 |
| 162 bool CastMetricsServiceClient::IsOffTheRecordSessionActive() { | 162 bool CastMetricsServiceClient::IsOffTheRecordSessionActive() { |
| 163 // Chromecast behaves as "off the record" w/r/t recording browsing state, | 163 // Chromecast behaves as "off the record" w/r/t recording browsing state, |
| 164 // but this value is about not disabling metrics because of it. | 164 // but this value is about not disabling metrics because of it. |
| 165 return false; | 165 return false; |
| 166 } | 166 } |
| 167 | 167 |
| 168 int32_t CastMetricsServiceClient::GetProduct() { | 168 int32_t CastMetricsServiceClient::GetProduct() { |
| 169 // Chromecast currently uses the same product identifier as Chrome. | 169 // Chromecast currently uses the same product identifier as Chrome. |
| 170 return ::metrics::ChromeUserMetricsExtension::CHROME; | 170 return ::metrics::ChromeUserMetricsExtension::CAST; |
| 171 } | 171 } |
| 172 | 172 |
| 173 std::string CastMetricsServiceClient::GetApplicationLocale() { | 173 std::string CastMetricsServiceClient::GetApplicationLocale() { |
| 174 return base::i18n::GetConfiguredLocale(); | 174 return base::i18n::GetConfiguredLocale(); |
| 175 } | 175 } |
| 176 | 176 |
| 177 bool CastMetricsServiceClient::GetBrand(std::string* brand_code) { | 177 bool CastMetricsServiceClient::GetBrand(std::string* brand_code) { |
| 178 return false; | 178 return false; |
| 179 } | 179 } |
| 180 | 180 |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 external_metrics_->StopAndDestroy(); | 405 external_metrics_->StopAndDestroy(); |
| 406 external_metrics_ = nullptr; | 406 external_metrics_ = nullptr; |
| 407 platform_metrics_->StopAndDestroy(); | 407 platform_metrics_->StopAndDestroy(); |
| 408 platform_metrics_ = nullptr; | 408 platform_metrics_ = nullptr; |
| 409 #endif // defined(OS_LINUX) | 409 #endif // defined(OS_LINUX) |
| 410 metrics_service_->Stop(); | 410 metrics_service_->Stop(); |
| 411 } | 411 } |
| 412 | 412 |
| 413 } // namespace metrics | 413 } // namespace metrics |
| 414 } // namespace chromecast | 414 } // namespace chromecast |
| OLD | NEW |