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

Unified Diff: chrome/browser/metrics/chrome_metrics_service_client.cc

Issue 2888563005: Added support for 'spare' file that can be used at startup. (Closed)
Patch Set: rebased Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/metrics/chrome_metrics_service_client.cc
diff --git a/chrome/browser/metrics/chrome_metrics_service_client.cc b/chrome/browser/metrics/chrome_metrics_service_client.cc
index ce0c71ad903b26deaa648d09dba9ababcf83a254..01fb0120fd9ed1111d5076a39d9b19d067c4ca29 100644
--- a/chrome/browser/metrics/chrome_metrics_service_client.cc
+++ b/chrome/browser/metrics/chrome_metrics_service_client.cc
@@ -181,8 +181,8 @@ void RegisterOrRemovePreviousRunMetricsFile(
scoped_refptr<base::TaskRunner> task_runner,
metrics::FileMetricsProvider* file_metrics_provider) {
base::FilePath metrics_file;
- base::GlobalHistogramAllocator::ConstructFilePaths(dir, metrics_name,
- &metrics_file, nullptr);
+ base::GlobalHistogramAllocator::ConstructFilePaths(
+ dir, metrics_name, &metrics_file, nullptr, nullptr);
if (metrics_reporting_enabled) {
// Enable reading any existing saved metrics.
@@ -237,8 +237,8 @@ std::unique_ptr<metrics::FileMetricsProvider> CreateFileMetricsProvider(
if (metrics_reporting_enabled) {
base::FilePath active_path;
base::GlobalHistogramAllocator::ConstructFilePaths(
- user_data_dir, kCrashpadHistogramAllocatorName, nullptr,
- &active_path);
+ user_data_dir, kCrashpadHistogramAllocatorName, nullptr, &active_path,
+ nullptr);
// Register data that will be populated for the current run. "Active"
// files need an empty "prefs_key" because they update the file itself.
file_metrics_provider->RegisterSource(

Powered by Google App Engine
This is Rietveld 408576698