Chromium Code Reviews| 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..4c666e7a8016f4b4cf9531f042ea3265a28c4b19 100644 |
| --- a/chrome/browser/chrome_browser_main.cc |
| +++ b/chrome/browser/chrome_browser_main.cc |
| @@ -1082,6 +1082,11 @@ 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. |
| + trial->group(); |
|
MAD
2012/05/07 14:47:19
Maybe a DVLOG(1) with the chosen group ID could be
|
| } |
| } |