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

Unified Diff: chrome/browser/chrome_browser_field_trials.cc

Issue 1780993002: Break global impact of PersistentHistogramAllocator into a separate class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor-hp
Patch Set: fixed bad formatting from upstream scoped_ptr change Created 4 years, 8 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_unittest.cc ('k') | chrome/installer/setup/installer_metrics.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_field_trials.cc
diff --git a/chrome/browser/chrome_browser_field_trials.cc b/chrome/browser/chrome_browser_field_trials.cc
index 2696ff0b0ff1c5ed001597f2d2047ed8dc3ac15e..648167695f6b70b9ca8b5c986e7c773d7d08c2ca 100644
--- a/chrome/browser/chrome_browser_field_trials.cc
+++ b/chrome/browser/chrome_browser_field_trials.cc
@@ -33,12 +33,12 @@ void InstantiatePersistentHistograms() {
// Create persistent/shared memory and allow histograms to be stored in it.
// Memory that is not actualy used won't be physically mapped by the system.
// BrowserMetrics usage peaked around 95% of 2MiB as of 2016-02-20.
- base::PersistentHistogramAllocator::CreateGlobalAllocatorOnLocalMemory(
+ base::GlobalHistogramAllocator::CreateWithLocalMemory(
3 << 20, // 3 MiB
0x935DDD43, // SHA1(BrowserMetrics)
kAllocatorName);
- base::PersistentHistogramAllocator::GetGlobalAllocator()
- ->CreateTrackingHistograms(kAllocatorName);
+ base::GlobalHistogramAllocator::Get()->CreateTrackingHistograms(
+ kAllocatorName);
}
}
« no previous file with comments | « base/metrics/statistics_recorder_unittest.cc ('k') | chrome/installer/setup/installer_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698