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/metrics/cast_metrics_service_client.h" | 5 #include "chromecast/metrics/cast_metrics_service_client.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/i18n/rtl.h" | 8 #include "base/i18n/rtl.h" |
9 #include "chromecast/common/chromecast_config.h" | 9 #include "chromecast/common/chromecast_config.h" |
10 #include "chromecast/common/chromecast_switches.h" | 10 #include "chromecast/common/chromecast_switches.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 } | 49 } |
50 | 50 |
51 bool CastMetricsServiceClient::IsOffTheRecordSessionActive() { | 51 bool CastMetricsServiceClient::IsOffTheRecordSessionActive() { |
52 // Chromecast behaves as "off the record" w/r/t recording browsing state, | 52 // Chromecast behaves as "off the record" w/r/t recording browsing state, |
53 // but this value is about not disabling metrics because of it. | 53 // but this value is about not disabling metrics because of it. |
54 return false; | 54 return false; |
55 } | 55 } |
56 | 56 |
57 int32_t CastMetricsServiceClient::GetProduct() { | 57 int32_t CastMetricsServiceClient::GetProduct() { |
58 // Chromecast currently uses the same product identifier as Chrome. | 58 // Chromecast currently uses the same product identifier as Chrome. |
59 return metrics::ChromeUserMetricsExtension::CHROME; | 59 return ::metrics::ChromeUserMetricsExtension::CHROME; |
60 } | 60 } |
61 | 61 |
62 std::string CastMetricsServiceClient::GetApplicationLocale() { | 62 std::string CastMetricsServiceClient::GetApplicationLocale() { |
63 return base::i18n::GetConfiguredLocale(); | 63 return base::i18n::GetConfiguredLocale(); |
64 } | 64 } |
65 | 65 |
66 bool CastMetricsServiceClient::GetBrand(std::string* brand_code) { | 66 bool CastMetricsServiceClient::GetBrand(std::string* brand_code) { |
67 return false; | 67 return false; |
68 } | 68 } |
69 | 69 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 | 170 |
171 CastMetricsServiceClient::~CastMetricsServiceClient() { | 171 CastMetricsServiceClient::~CastMetricsServiceClient() { |
172 } | 172 } |
173 | 173 |
174 bool CastMetricsServiceClient::IsReportingEnabled() { | 174 bool CastMetricsServiceClient::IsReportingEnabled() { |
175 return PlatformIsReportingEnabled(); | 175 return PlatformIsReportingEnabled(); |
176 } | 176 } |
177 | 177 |
178 } // namespace metrics | 178 } // namespace metrics |
179 } // namespace chromecast | 179 } // namespace chromecast |
OLD | NEW |