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

Issue 7360001: Allow one-time randomization in field trials to work even if metrics are disabled. (Closed)

Created:
9 years, 5 months ago by sreeram
Modified:
9 years, 5 months ago
CC:
chromium-reviews, brettw-cc_chromium.org, Jói, yzshen1
Visibility:
Public.

Description

Allow 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
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -14 lines) Patch
M chrome/browser/browser_main.cc View 1 1 chunk +4 lines, -3 lines 1 comment Download
M chrome/browser/metrics/metrics_service.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/metrics/metrics_service.cc View 1 2 2 chunks +16 lines, -11 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
sreeram
Please review.
9 years, 5 months ago (2011-07-13 21:04:33 UTC) #1
jar (doing other things)
Please correct me if I misinterpreted the comment and intent. http://codereview.chromium.org/7360001/diff/6001/chrome/browser/browser_main.cc File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/7360001/diff/6001/chrome/browser/browser_main.cc#newcode276 ...
9 years, 5 months ago (2011-07-18 17:33:49 UTC) #2
sreeram
9 years, 5 months ago (2011-07-18 17:38:59 UTC) #3
Ouch. Okay, looks like this CL is a non-starter, then. I'll withdraw it.

On Mon, Jul 18, 2011 at 10:33,  <jar@chromium.org> wrote:
> Please correct me if I misinterpreted the comment and intent.
>
>
>
http://codereview.chromium.org/7360001/diff/6001/chrome/browser/browser_main.cc
> File chrome/browser/browser_main.cc (right):
>
>
http://codereview.chromium.org/7360001/diff/6001/chrome/browser/browser_main....
> chrome/browser/browser_main.cc:276: // randomization. The client ID will
> not be empty even if the user has not
> This appears problematic from a privacy perspective... if I understand
> the comment.
>
> We had a lot of feedback from privacy groups indicating that we
> absolutely should NOT tag a user with a unique ID if we are not going to
> send data via UMA.  At one point, a special non-Google version of
> Chromium started to become popular with its central "feature" being that
> it trashed this value.
>
> Bottom line: If the user opts out of the UMA upload, we don't want to
> set a persistent tag in the profile.  Yes, it is true, that we won't use
> it.... but it is considered undesirable.
>
> http://codereview.chromium.org/7360001/
>

Powered by Google App Engine
This is Rietveld 408576698