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

Unified Diff: chrome/browser/chrome_browser_field_trials_desktop.cc

Issue 2528173003: Desktop fast shutdown experiment (Closed)
Patch Set: Put features in 'features' namespace Created 4 years 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/BUILD.gn ('k') | chrome/browser/chrome_browser_main.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_desktop.cc
diff --git a/chrome/browser/chrome_browser_field_trials_desktop.cc b/chrome/browser/chrome_browser_field_trials_desktop.cc
index 1901825d0d8eba14feef045856b9da736cbaf9ce..6ebdc45f3675caa8dc96275ccdf062f1c75b9528 100644
--- a/chrome/browser/chrome_browser_field_trials_desktop.cc
+++ b/chrome/browser/chrome_browser_field_trials_desktop.cc
@@ -14,6 +14,7 @@
#include "base/metrics/field_trial.h"
#include "base/metrics/histogram_macros.h"
#include "base/path_service.h"
+#include "chrome/browser/features.h"
#include "chrome/browser/prerender/prerender_field_trial.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
@@ -112,6 +113,12 @@ void SetupDesktopFieldTrials(const base::CommandLine& parsed_command_line) {
#if defined(OS_WIN)
SetupStabilityDebugging();
#endif // defined(OS_WIN)
+ // Activate the experiment as early as possible to increase its visibility
+ // (e.g. the likelihood of its presence in the serialized system profile).
+ // This also needs to happen before the browser rendez-vous attempt
+ // (NotifyOtherProcessOrCreate) in PreMainMessageLoopRun so the corresponding
+ // metrics are tagged.
+ base::FeatureList::IsEnabled(features::kDesktopFastShutdown);
}
} // namespace chrome
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698