DescriptionAllow one-time randomization in field trials to work even if metrics are disabled.
Some field trials (such as an upcoming Instant trial) need to use one-time
randomization, which currently doesn't work if the user isn't opted in to
sending metrics. To make it work, provide a non-empty ID even if metrics are
disabled.
Field trials that used to be disabled because they had an empty ID will now be
enabled (i.e., they'll see a lot more users falling into their trial). I found
only one such trial (chrome/browser/trials/http_throttling_trial.cc). Joi: If
this is going to be a problem, let me know, and we can work something out (say
by reducing the experiment group probability for your trial).
Since we store the generated client ID in prefs, this means that anybody who
was formerly seeing an empty prefs::kMetricsClientID will now unexpectedly see
a valid ID. I found no other users of this pref, so this shouldn't be an issue.
Finally, note that if metrics are disabled, MetricsService::GetClientID() will
continue to return an empty string, so all users of that API (of whom there are
many) remain unaffected.
BUG=none
TEST=Ran unit_tests and many try bots.
Patch Set 1 #Patch Set 2 : Store client ID in prefs #Patch Set 3 : Build fix #
Total comments: 1
Messages
Total messages: 3 (0 generated)
|