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

Unified Diff: chrome/browser/chrome_browser_field_trials_desktop.cc

Issue 993003002: Add lightspeed experiments to disable gpu. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Only gpu. Created 5 years, 9 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_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..8f9566b06724a97f6afd46606a3f665a38dedb87 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,15 @@ void DisableShowProfileSwitcherTrialIfNecessary() {
trial->Disable();
}
+void SetupLightSpeedTrials() {
+ std::map<std::string, std::string> params;
+ if (!variations::GetVariationParams("LightSpeed", &params))
gab 2015/03/10 19:42:12 Why not use typical GetVariationParamValue("LightS
Alexei Svitkine (slow) 2015/03/10 19:48:36 This was setting up up multiple parameters in a pr
Alexei Svitkine (slow) 2015/03/11 15:57:08 Done.
+ return;
+ base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
gab 2015/03/10 19:42:12 Inline this below.
Alexei Svitkine (slow) 2015/03/11 15:57:08 Done.
+ if (ContainsKey(params, "NoGpu"))
+ command_line->AppendSwitch(switches::kDisableGpu);
+}
+
} // namespace
void SetupDesktopFieldTrials(const base::CommandLine& parsed_command_line,
@@ -71,6 +81,7 @@ void SetupDesktopFieldTrials(const base::CommandLine& parsed_command_line,
AutoLaunchChromeFieldTrial();
SetupInfiniteCacheFieldTrial();
DisableShowProfileSwitcherTrialIfNecessary();
+ SetupLightSpeedTrials();
SetupShowAppLauncherPromoFieldTrial(local_state);
}
« 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