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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 10391168: Merge 135655 - Uselessly use the uniformity field trial. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1132/src/
Patch Set: Created 8 years, 7 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
===================================================================
--- chrome/browser/chrome_browser_main.cc (revision 137467)
+++ chrome/browser/chrome_browser_main.cc (working copy)
@@ -1081,6 +1081,12 @@
experiments_helper::AssociateGoogleExperimentID(trial_name, group_name,
static_cast<chrome_variations::ID>(trial_base_ids[i] + group_number));
}
+
+ // Now that all groups have been appended, call group() on the trial to
+ // ensure that our trial is registered. This resolves an off-by-one issue
+ // where the default group never gets chosen if we don't "use" the trial.
+ int chosen_group = trial->group();
+ DVLOG(1) << "Chosen Group: " << chosen_group;
}
}
« 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