| 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 <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 kCrashpadHistogramAllocatorName, task_runner, | 214 kCrashpadHistogramAllocatorName, task_runner, |
| 215 file_metrics_provider.get()); | 215 file_metrics_provider.get()); |
| 216 if (metrics_reporting_enabled) { | 216 if (metrics_reporting_enabled) { |
| 217 base::FilePath active_path; | 217 base::FilePath active_path; |
| 218 base::GlobalHistogramAllocator::ConstructFilePaths( | 218 base::GlobalHistogramAllocator::ConstructFilePaths( |
| 219 user_data_dir, kCrashpadHistogramAllocatorName, nullptr, | 219 user_data_dir, kCrashpadHistogramAllocatorName, nullptr, |
| 220 &active_path); | 220 &active_path); |
| 221 // Register data that will be populated for the current run. | 221 // Register data that will be populated for the current run. |
| 222 file_metrics_provider->RegisterSource( | 222 file_metrics_provider->RegisterSource( |
| 223 active_path, | 223 active_path, |
| 224 metrics::FileMetricsProvider::SOURCE_HISTOGRAMS_ATOMIC_FILE, | 224 metrics::FileMetricsProvider::SOURCE_HISTOGRAMS_ACTIVE_FILE, |
| 225 metrics::FileMetricsProvider::ASSOCIATE_CURRENT_RUN, | 225 metrics::FileMetricsProvider::ASSOCIATE_CURRENT_RUN, |
| 226 kCrashpadHistogramAllocatorName); | 226 kCrashpadHistogramAllocatorName); |
| 227 } | 227 } |
| 228 } | 228 } |
| 229 | 229 |
| 230 #if defined(OS_WIN) | 230 #if defined(OS_WIN) |
| 231 // Read metrics file from setup.exe. | 231 // Read metrics file from setup.exe. |
| 232 base::FilePath program_dir; | 232 base::FilePath program_dir; |
| 233 base::PathService::Get(base::DIR_EXE, &program_dir); | 233 base::PathService::Get(base::DIR_EXE, &program_dir); |
| 234 file_metrics_provider->RegisterSource( | 234 file_metrics_provider->RegisterSource( |
| (...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 893 } | 893 } |
| 894 } | 894 } |
| 895 | 895 |
| 896 void ChromeMetricsServiceClient::OnURLOpenedFromOmnibox(OmniboxLog* log) { | 896 void ChromeMetricsServiceClient::OnURLOpenedFromOmnibox(OmniboxLog* log) { |
| 897 metrics_service_->OnApplicationNotIdle(); | 897 metrics_service_->OnApplicationNotIdle(); |
| 898 } | 898 } |
| 899 | 899 |
| 900 bool ChromeMetricsServiceClient::IsUMACellularUploadLogicEnabled() { | 900 bool ChromeMetricsServiceClient::IsUMACellularUploadLogicEnabled() { |
| 901 return metrics::IsCellularLogicEnabled(); | 901 return metrics::IsCellularLogicEnabled(); |
| 902 } | 902 } |
| OLD | NEW |