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

Unified Diff: chrome/browser/chrome_browser_field_trials.cc

Issue 14048014: Fix SimpleCache field trial creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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
« 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.cc
diff --git a/chrome/browser/chrome_browser_field_trials.cc b/chrome/browser/chrome_browser_field_trials.cc
index 7e90ba8697adc7c624adb9c148535e3862f43fff..fcc132e7d6a97d5239a3f51b0c09a36bb03d86f9 100644
--- a/chrome/browser/chrome_browser_field_trials.cc
+++ b/chrome/browser/chrome_browser_field_trials.cc
@@ -204,15 +204,15 @@ void ChromeBrowserFieldTrials::SetUpSimpleCacheFieldTrial() {
if (parsed_command_line_.HasSwitch(switches::kUseSimpleCacheBackend)) {
const std::string opt_value = parsed_command_line_.GetSwitchValueASCII(
switches::kUseSimpleCacheBackend);
- if (LowerCaseEqualsASCII(opt_value, "off")) {
- // This is the default.
- return;
- }
const base::FieldTrial::Probability kDivisor = 100;
scoped_refptr<base::FieldTrial> trial(
base::FieldTrialList::FactoryGetFieldTrial("SimpleCacheTrial", kDivisor,
"No", 2013, 12, 31, NULL));
trial->UseOneTimeRandomization();
+ if (LowerCaseEqualsASCII(opt_value, "off")) {
SteveT 2013/04/17 15:41:02 Couple things here: (1) Appending a new group wit
Alexei Svitkine (slow) 2013/04/17 15:46:52 Agree with Steve on all points. Also, I'd like to
gavinp 2013/04/17 16:19:42 There's two considerations that cause me to want e
gavinp 2013/04/17 16:19:42 Alexei, Oh no! Right now FindFullName() is exactl
+ trial->AppendGroup("No", 100);
+ return;
+ }
if (LowerCaseEqualsASCII(opt_value, "on")) {
trial->AppendGroup("Yes", 100);
return;
« 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