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

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

Issue 2294093003: Add conversation_key to CastEventProto message. (Closed)
Patch Set: Remove outdated comment in CastMetricsServiceClient. 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 | no next file » | 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 return std::unique_ptr<::metrics::ClientInfo>(); 159 return std::unique_ptr<::metrics::ClientInfo>();
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.
170 return ::metrics::ChromeUserMetricsExtension::CHROME; 169 return ::metrics::ChromeUserMetricsExtension::CHROME;
171 } 170 }
172 171
173 std::string CastMetricsServiceClient::GetApplicationLocale() { 172 std::string CastMetricsServiceClient::GetApplicationLocale() {
174 return base::i18n::GetConfiguredLocale(); 173 return base::i18n::GetConfiguredLocale();
175 } 174 }
176 175
177 bool CastMetricsServiceClient::GetBrand(std::string* brand_code) { 176 bool CastMetricsServiceClient::GetBrand(std::string* brand_code) {
178 return false; 177 return false;
179 } 178 }
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 external_metrics_->StopAndDestroy(); 404 external_metrics_->StopAndDestroy();
406 external_metrics_ = nullptr; 405 external_metrics_ = nullptr;
407 platform_metrics_->StopAndDestroy(); 406 platform_metrics_->StopAndDestroy();
408 platform_metrics_ = nullptr; 407 platform_metrics_ = nullptr;
409 #endif // defined(OS_LINUX) 408 #endif // defined(OS_LINUX)
410 metrics_service_->Stop(); 409 metrics_service_->Stop();
411 } 410 }
412 411
413 } // namespace metrics 412 } // namespace metrics
414 } // namespace chromecast 413 } // namespace chromecast
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698