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

Side by Side Diff: chrome/browser/metrics/chrome_metrics_service_client.cc

Issue 2610883006: Enable UMA reporting for crashpad_handler on macOS (Closed)
Patch Set: Use SOURCE_HISTOGRAMS_ACTIVE_FILE Created 3 years, 11 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 | « chrome/app/chrome_crash_reporter_client_win.h ('k') | 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 "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
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
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 }
OLDNEW
« no previous file with comments | « chrome/app/chrome_crash_reporter_client_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698