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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 2810833002: Add memory ablation experiment. (Closed)
Patch Set: Rebase Created 3 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 | « chrome/browser/about_flags.cc ('k') | chrome/browser/experiments/memory_ablation_experiment.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 612d16bd9b979e17f1d464c2d04a4f4b911389bd..e8c36382cdacd55e43a5081012ba22b1d1d125e3 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -60,6 +60,7 @@
#include "chrome/browser/component_updater/supervised_user_whitelist_installer.h"
#include "chrome/browser/component_updater/widevine_cdm_component_installer.h"
#include "chrome/browser/defaults.h"
+#include "chrome/browser/experiments/memory_ablation_experiment.h"
#include "chrome/browser/first_run/first_run.h"
#include "chrome/browser/geolocation/chrome_access_token_store.h"
#include "chrome/browser/gpu/gpu_profile_cache.h"
@@ -1429,6 +1430,10 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() {
// blocking pool, which is disabled until the CreateThreads phase of startup.
SetupMetrics();
+ // Can't be in SetupFieldTrials() because it needs a task runner.
+ MemoryAblationExperiment::MaybeStart(
+ BrowserThread::GetTaskRunnerForThread(BrowserThread::IO));
+
#if defined(OS_WIN)
// Windows parental controls calls can be slow, so we do an early init here
// that calculates this value off of the UI thread.
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/experiments/memory_ablation_experiment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698