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

Side by Side Diff: chromecast/browser/metrics/cast_metrics_service_client.cc

Issue 2297423002: Change cast's UMA product type from CHROME to CAST. (Closed)
Patch Set: Change cast's UMA product type from CHROME to CAST. Created 4 years, 3 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
« no previous file with comments | « no previous file | components/metrics/proto/chrome_user_metrics_extension.proto » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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
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
OLDNEW
« no previous file with comments | « no previous file | components/metrics/proto/chrome_user_metrics_extension.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698