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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 2810833002: Add memory ablation experiment. (Closed)
Patch Set: 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
Index: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index df7b1cc1046295ee403ac8f528595ea702878327..aa597edfb3961c649e033e4ed79bbb4ebd46a514 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.

Powered by Google App Engine
This is Rietveld 408576698