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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 10377033: Uselessly use the uniformity field trial. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: DVLOG the group 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
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index 13c414b92a347fbea9507408a43fa7f417883cbf..864139a37865373d293442003c2de2827fd7f22d 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -1082,6 +1082,12 @@ void ChromeBrowserMainParts::SetupUniformityFieldTrials() {
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