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

Unified Diff: chrome/installer/setup/installer_metrics.cc

Issue 1726873002: Report histogram creation results. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 9 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
« no previous file with comments | « base/metrics/statistics_recorder.cc ('k') | content/app/content_main_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/setup/installer_metrics.cc
diff --git a/chrome/installer/setup/installer_metrics.cc b/chrome/installer/setup/installer_metrics.cc
index 5bf860ced29b3c91050db9928e21e0ef669d8075..ccc7ac413209db72a1143de2461de7bcc92bfd4e 100644
--- a/chrome/installer/setup/installer_metrics.cc
+++ b/chrome/installer/setup/installer_metrics.cc
@@ -21,6 +21,10 @@ void BeginPersistentHistogramStorage() {
installer::kSetupHistogramAllocatorName);
base::PersistentHistogramAllocator::GetGlobalAllocator()
->CreateTrackingHistograms(installer::kSetupHistogramAllocatorName);
+
+ // This can't be enabled until after the allocator is configured because
+ // there is no other reporting out of setup other than persistent memory.
+ base::HistogramBase::EnableActivityReportHistogram("setup");
}
void EndPersistentHistogramStorage(const base::FilePath& target_path) {
« no previous file with comments | « base/metrics/statistics_recorder.cc ('k') | content/app/content_main_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698