Index: chrome/browser/chrome_browser_field_trials_desktop.cc |
diff --git a/chrome/browser/chrome_browser_field_trials_desktop.cc b/chrome/browser/chrome_browser_field_trials_desktop.cc |
index 638d2d3b1840a81e924539f5f2bcf19cf1e422b7..6892f3459aacbf33032d6ae0ccd6f010d1f57598 100644 |
--- a/chrome/browser/chrome_browser_field_trials_desktop.cc |
+++ b/chrome/browser/chrome_browser_field_trials_desktop.cc |
@@ -26,6 +26,7 @@ |
#include "chrome/common/chrome_switches.h" |
#include "components/browser_watcher/features.h" |
#include "components/browser_watcher/stability_paths.h" |
+#include "components/metrics/persistent_system_profile.h" |
#include "components/variations/variations_associated_data.h" |
#include "content/public/common/content_switches.h" |
#include "media/media_features.h" |
@@ -191,6 +192,12 @@ void SetupStabilityDebugging() { |
browser_watcher::kInitFlushParam, false); |
if (should_flush) |
::FlushViewOfFile(global_tracker->allocator()->data(), 0U); |
+ |
+ // Store a copy of the system profile in this allocator. There will be some |
+ // delay before this gets populated, perhaps as much as a minute. Because |
+ // of this, there is no need to flush it here. |
+ metrics::GlobalPersistentSystemProfile::GetInstance() |
+ ->RegisterPersistentAllocator(global_tracker->allocator()); |
} |
} |
#endif // defined(OS_WIN) |