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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 2375563002: Stack sampling profiler: move configuration to chrome/common (Closed)
Patch Set: initialize to std::string() Created 4 years, 3 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 | « chrome/browser/chrome_browser_main.h ('k') | chrome/browser/metrics/chrome_metrics_service_accessor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index 55816ebed90f84c08d063f4ccb2be1f057a65e7b..52ac8627b85bd387b2be34498817eb6b144a96de 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -892,7 +892,12 @@ void ChromeBrowserMainParts::SetupFieldTrials() {
// Register a synthetic field trial for the sampling profiler configuration
// that was already chosen.
- sampling_profiler_config_.RegisterSyntheticFieldTrial();
+ std::string trial_name, group_name;
+ if (sampling_profiler_config_.GetSyntheticFieldTrial(&trial_name,
+ &group_name)) {
+ ChromeMetricsServiceAccessor::RegisterSyntheticFieldTrial(trial_name,
+ group_name);
+ }
#if defined(OS_WIN) || defined(OS_MACOSX) || \
(defined(OS_LINUX) && !defined(OS_CHROMEOS))
« no previous file with comments | « chrome/browser/chrome_browser_main.h ('k') | chrome/browser/metrics/chrome_metrics_service_accessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698