| 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 9f3c516fb87e0d1f133037734df1da04d4eaa047..31af3f64082529117092bd799419e8ae1d3728d7 100644
|
| --- a/chrome/browser/chrome_browser_field_trials_desktop.cc
|
| +++ b/chrome/browser/chrome_browser_field_trials_desktop.cc
|
| @@ -20,6 +20,7 @@
|
| #include "chrome/common/chrome_switches.h"
|
| #include "chrome/common/chrome_version_info.h"
|
| #include "chrome/common/variations/variations_util.h"
|
| +#include "components/variations/variations_associated_data.h"
|
| #include "content/public/common/content_constants.h"
|
| #include "net/spdy/spdy_session.h"
|
| #include "ui/base/layout.h"
|
| @@ -63,6 +64,13 @@ void DisableShowProfileSwitcherTrialIfNecessary() {
|
| trial->Disable();
|
| }
|
|
|
| +void SetupLightSpeedTrials() {
|
| + if (!variations::GetVariationParamValue("LightSpeed", "NoGpu").empty()) {
|
| + base::CommandLine::ForCurrentProcess()->AppendSwitch(
|
| + switches::kDisableGpu);
|
| + }
|
| +}
|
| +
|
| } // namespace
|
|
|
| void SetupDesktopFieldTrials(const base::CommandLine& parsed_command_line,
|
| @@ -71,6 +79,7 @@ void SetupDesktopFieldTrials(const base::CommandLine& parsed_command_line,
|
| AutoLaunchChromeFieldTrial();
|
| SetupInfiniteCacheFieldTrial();
|
| DisableShowProfileSwitcherTrialIfNecessary();
|
| + SetupLightSpeedTrials();
|
| SetupShowAppLauncherPromoFieldTrial(local_state);
|
| }
|
|
|
|
|