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

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

Issue 618873002: Chromecast: minor buildfixes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | chromecast/shell/browser/cast_browser_main_parts.cc » ('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/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
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
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
OLDNEW
« no previous file with comments | « no previous file | chromecast/shell/browser/cast_browser_main_parts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698