| 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 "chrome/browser/metrics/chrome_metrics_service_client.h" | 5 #include "chrome/browser/metrics/chrome_metrics_service_client.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 | 305 |
| 306 metrics::MetricsService* ChromeMetricsServiceClient::GetMetricsService() { | 306 metrics::MetricsService* ChromeMetricsServiceClient::GetMetricsService() { |
| 307 return metrics_service_.get(); | 307 return metrics_service_.get(); |
| 308 } | 308 } |
| 309 | 309 |
| 310 void ChromeMetricsServiceClient::SetMetricsClientId( | 310 void ChromeMetricsServiceClient::SetMetricsClientId( |
| 311 const std::string& client_id) { | 311 const std::string& client_id) { |
| 312 crash_keys::SetMetricsClientIdFromGUID(client_id); | 312 crash_keys::SetMetricsClientIdFromGUID(client_id); |
| 313 } | 313 } |
| 314 | 314 |
| 315 bool ChromeMetricsServiceClient::IsOffTheRecordSessionActive() { | |
| 316 return chrome::IsIncognitoSessionActive(); | |
| 317 } | |
| 318 | |
| 319 int32_t ChromeMetricsServiceClient::GetProduct() { | 315 int32_t ChromeMetricsServiceClient::GetProduct() { |
| 320 return metrics::ChromeUserMetricsExtension::CHROME; | 316 return metrics::ChromeUserMetricsExtension::CHROME; |
| 321 } | 317 } |
| 322 | 318 |
| 323 std::string ChromeMetricsServiceClient::GetApplicationLocale() { | 319 std::string ChromeMetricsServiceClient::GetApplicationLocale() { |
| 324 return g_browser_process->GetApplicationLocale(); | 320 return g_browser_process->GetApplicationLocale(); |
| 325 } | 321 } |
| 326 | 322 |
| 327 bool ChromeMetricsServiceClient::GetBrand(std::string* brand_code) { | 323 bool ChromeMetricsServiceClient::GetBrand(std::string* brand_code) { |
| 328 return google_brand::GetBrand(brand_code); | 324 return google_brand::GetBrand(brand_code); |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 814 } | 810 } |
| 815 } | 811 } |
| 816 | 812 |
| 817 void ChromeMetricsServiceClient::OnURLOpenedFromOmnibox(OmniboxLog* log) { | 813 void ChromeMetricsServiceClient::OnURLOpenedFromOmnibox(OmniboxLog* log) { |
| 818 metrics_service_->OnApplicationNotIdle(); | 814 metrics_service_->OnApplicationNotIdle(); |
| 819 } | 815 } |
| 820 | 816 |
| 821 bool ChromeMetricsServiceClient::IsUMACellularUploadLogicEnabled() { | 817 bool ChromeMetricsServiceClient::IsUMACellularUploadLogicEnabled() { |
| 822 return metrics::IsCellularLogicEnabled(); | 818 return metrics::IsCellularLogicEnabled(); |
| 823 } | 819 } |
| OLD | NEW |