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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 1749213005: Revert of Make the EarlyInitStartup Code Default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index e0b4ff2a9def556cd9a0a78249c072210de03397..58be71c5dd7d5f2a5b8cf1b2391c9cb1744b28e0 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -1231,13 +1231,16 @@
#endif
#if defined(ENABLE_EXTENSIONS)
- // Try to compute this early on another thread so that we don't spend time
- // during profile load initializing the extensions APIs.
- BrowserThread::PostTask(
- BrowserThread::FILE_USER_BLOCKING,
- FROM_HERE,
- base::Bind(
- base::IgnoreResult(&extensions::FeatureProvider::GetAPIFeatures)));
+ if (!variations::GetVariationParamValue(
+ "LightSpeed", "EarlyInitStartup").empty()) {
+ // Try to compute this early on another thread so that we don't spend time
+ // during profile load initializing the extensions APIs.
+ BrowserThread::PostTask(
+ BrowserThread::FILE_USER_BLOCKING,
+ FROM_HERE,
+ base::Bind(
+ base::IgnoreResult(&extensions::FeatureProvider::GetAPIFeatures)));
+ }
#endif
// Android updates the metrics service dynamically depending on whether the
« 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