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

Unified Diff: chrome/browser/chrome_browser_field_trials_desktop.cc

Issue 2908073005: Store the system profile in the breadcrumbs file. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698