Index: chrome/browser/chrome_content_browser_client.cc |
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc |
index 511e5450f9a535c40d41945c8957c643399aee23..4c444d918f97dd962d5b82edeb5794e1d04007c9 100644 |
--- a/chrome/browser/chrome_content_browser_client.cc |
+++ b/chrome/browser/chrome_content_browser_client.cc |
@@ -146,6 +146,7 @@ |
#include "components/spellcheck/spellcheck_build_features.h" |
#include "components/startup_metric_utils/browser/startup_metric_host_impl.h" |
#include "components/task_scheduler_util/browser/initialization.h" |
+#include "components/task_scheduler_util/common/variations_util.h" |
#include "components/translate/core/common/translate_switches.h" |
#include "components/url_formatter/url_fixer.h" |
#include "components/variations/variations_associated_data.h" |
@@ -1823,6 +1824,15 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches( |
StackSamplingConfiguration::Get()->AppendCommandLineSwitchForChildProcess( |
process_type, |
command_line); |
+ |
+ if (process_type == switches::kRendererProcess) { |
+ std::map<std::string, std::string> task_scheduler_variation_params; |
+ if (variations::GetVariationParams("BrowserScheduler", |
+ &task_scheduler_variation_params)) { |
+ task_scheduler_util::AddVariationParamsToCommandLine( |
+ task_scheduler_variation_params, "Renderer", command_line); |
+ } |
+ } |
} |
std::string ChromeContentBrowserClient::GetApplicationLocale() { |