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

Issue 1958003003: Splitting the concept of UMA consent, and should UMA report. (Closed)

Created:
4 years, 7 months ago by jwd
Modified:
4 years, 7 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Splitting the concept of UMA consent, and should UMA report. The motivation here is to support sampling clients. When a client isn't in the sample, reporting will be disabled, even if they've consented. Knowing consent is still important to make sure the client_id is created, and the high entropy source is used for variations selection. Otherwise, clients would be shuffled into different variations whenever they come in or out of the sample. BUG=609987 Committed: https://crrev.com/a5d188392c54189a2a044b8c436209995db1ed9d Cr-Commit-Position: refs/heads/master@{#393333}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : #

Patch Set 16 : #

Patch Set 17 : #

Total comments: 12

Patch Set 18 : #

Total comments: 8

Patch Set 19 : #

Patch Set 20 : #

Patch Set 21 : #

Total comments: 2

Patch Set 22 : #

Patch Set 23 : Rebasing and updating blimp_metrics_service_client #

Total comments: 2

Patch Set 24 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+239 lines, -116 lines) Patch
M android_webview/browser/aw_metrics_service_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 4 chunks +6 lines, -4 lines 0 comments Download
M android_webview/browser/aw_metrics_service_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 5 chunks +9 lines, -9 lines 0 comments Download
M blimp/engine/app/blimp_metrics_service_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 3 chunks +8 lines, -1 line 0 comments Download
M blimp/engine/app/blimp_metrics_service_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +6 lines, -9 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_services_manager_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_services_manager_client.cc View 1 2 3 4 4 chunks +18 lines, -5 lines 0 comments Download
M chrome/browser/metrics/extensions_metrics_provider_unittest.cc View 1 2 3 3 chunks +3 lines, -5 lines 0 comments Download
M chromecast/browser/metrics/cast_metrics_service_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 6 chunks +8 lines, -5 lines 0 comments Download
M chromecast/browser/metrics/cast_metrics_service_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 4 chunks +6 lines, -7 lines 0 comments Download
M components/metrics.gypi View 1 2 chunks +4 lines, -0 lines 0 comments Download
M components/metrics/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +4 lines, -0 lines 0 comments Download
A components/metrics/enabled_state_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +25 lines, -0 lines 0 comments Download
A + components/metrics/enabled_state_provider.cc View 1 chunk +9 lines, -14 lines 0 comments Download
M components/metrics/metrics_service_unittest.cc View 1 4 chunks +8 lines, -12 lines 0 comments Download
M components/metrics/metrics_state_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +16 lines, -14 lines 0 comments Download
M components/metrics/metrics_state_manager.cc View 5 chunks +8 lines, -8 lines 0 comments Download
M components/metrics/metrics_state_manager_unittest.cc View 1 5 chunks +7 lines, -10 lines 0 comments Download
A components/metrics/test_enabled_state_provider.h View 1 2 1 chunk +37 lines, -0 lines 0 comments Download
A components/metrics/test_enabled_state_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +17 lines, -0 lines 0 comments Download
M ios/chrome/browser/metrics/ios_chrome_metrics_services_manager_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +10 lines, -0 lines 0 comments Download
M ios/chrome/browser/metrics/ios_chrome_metrics_services_manager_client.mm View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +18 lines, -4 lines 0 comments Download
M ios/chrome/browser/metrics/mobile_session_shutdown_metrics_provider_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -9 lines 0 comments Download

Messages

Total messages: 35 (11 generated)
jwd
4 years, 7 months ago (2016-05-09 21:00:16 UTC) #2
jwd
Ok, it's ready for a full look now.
4 years, 7 months ago (2016-05-11 15:15:33 UTC) #3
jwd
Ok, it's ready for a full look now.
4 years, 7 months ago (2016-05-11 15:15:33 UTC) #4
Alexei Svitkine (slow)
https://codereview.chromium.org/1958003003/diff/320001/android_webview/browser/aw_metrics_service_client.h File android_webview/browser/aw_metrics_service_client.h (right): https://codereview.chromium.org/1958003003/diff/320001/android_webview/browser/aw_metrics_service_client.h#newcode88 android_webview/browser/aw_metrics_service_client.h:88: std::unique_ptr<AwEnabledStateProvider> enabled_state_provider_; Nit: How about just making AwMetricsServiceClient implement ...
4 years, 7 months ago (2016-05-11 17:16:28 UTC) #5
Alexei Svitkine (slow)
Also, be aware that a new MetricsServiceClient is being added for Blimp here that will ...
4 years, 7 months ago (2016-05-11 17:20:14 UTC) #6
jwd
On 2016/05/11 17:20:14, Alexei Svitkine wrote: > Also, be aware that a new MetricsServiceClient is ...
4 years, 7 months ago (2016-05-11 18:31:17 UTC) #8
jwd
https://codereview.chromium.org/1958003003/diff/320001/android_webview/browser/aw_metrics_service_client.h File android_webview/browser/aw_metrics_service_client.h (right): https://codereview.chromium.org/1958003003/diff/320001/android_webview/browser/aw_metrics_service_client.h#newcode88 android_webview/browser/aw_metrics_service_client.h:88: std::unique_ptr<AwEnabledStateProvider> enabled_state_provider_; On 2016/05/11 17:16:28, Alexei Svitkine wrote: > ...
4 years, 7 months ago (2016-05-11 18:31:38 UTC) #9
Alexei Svitkine (slow)
lgtm % comments In your CL description, please add a newline after the first sentence ...
4 years, 7 months ago (2016-05-11 18:37:26 UTC) #10
jwd
https://codereview.chromium.org/1958003003/diff/340001/android_webview/browser/aw_metrics_service_client.h File android_webview/browser/aw_metrics_service_client.h (right): https://codereview.chromium.org/1958003003/diff/340001/android_webview/browser/aw_metrics_service_client.h#newcode72 android_webview/browser/aw_metrics_service_client.h:72: // metrics::EnabledStateProvider implementation: On 2016/05/11 18:37:26, Alexei Svitkine wrote: ...
4 years, 7 months ago (2016-05-11 19:17:04 UTC) #12
jwd
+sgurun@ for webview owners +lpromero@ for ios
4 years, 7 months ago (2016-05-11 20:02:10 UTC) #14
lpromero
lgtm
4 years, 7 months ago (2016-05-11 20:24:42 UTC) #15
sgurun-gerrit only
On 2016/05/11 20:24:42, lpromero wrote: > lgtm sending to Paul for review. I will rubber ...
4 years, 7 months ago (2016-05-11 20:44:59 UTC) #17
paulmiller
I named the WV functions assuming that "enabled" == "consented". Some of these names become ...
4 years, 7 months ago (2016-05-11 21:31:34 UTC) #18
jwd
On 2016/05/11 21:31:34, paulmiller wrote: > I named the WV functions assuming that "enabled" == ...
4 years, 7 months ago (2016-05-11 22:00:49 UTC) #19
jwd
https://codereview.chromium.org/1958003003/diff/230020/android_webview/browser/aw_metrics_service_client.h File android_webview/browser/aw_metrics_service_client.h (right): https://codereview.chromium.org/1958003003/diff/230020/android_webview/browser/aw_metrics_service_client.h#newcode73 android_webview/browser/aw_metrics_service_client.h:73: bool IsConsentGiven() override; On 2016/05/11 21:31:35, paulmiller wrote: > ...
4 years, 7 months ago (2016-05-11 22:01:04 UTC) #20
paulmiller
android_webview/ lgtm
4 years, 7 months ago (2016-05-11 22:05:48 UTC) #21
sgurun-gerrit only
On 2016/05/11 22:05:48, paulmiller wrote: > android_webview/ lgtm aw lgtm rubber stamp
4 years, 7 months ago (2016-05-11 22:06:47 UTC) #22
jwd
+jessicag for blimp changes.
4 years, 7 months ago (2016-05-12 01:32:22 UTC) #24
Jess
On 2016/05/12 16:56:19, Jess wrote: > mailto:jessicag@chromium.org changed reviewers: > + mailto:kmarshall@chromium.org > - mailto:jessicag@chromium.org ...
4 years, 7 months ago (2016-05-12 16:57:36 UTC) #26
Kevin M
blimp/ lgtm % supernit https://codereview.chromium.org/1958003003/diff/430001/blimp/engine/app/blimp_metrics_service_client.h File blimp/engine/app/blimp_metrics_service_client.h (right): https://codereview.chromium.org/1958003003/diff/430001/blimp/engine/app/blimp_metrics_service_client.h#newcode67 blimp/engine/app/blimp_metrics_service_client.h:67: // metrics::EnabledStateProvider: nit: "metrics::EnabledStateProvider implementation. ...
4 years, 7 months ago (2016-05-12 17:58:46 UTC) #27
jwd
https://codereview.chromium.org/1958003003/diff/430001/blimp/engine/app/blimp_metrics_service_client.h File blimp/engine/app/blimp_metrics_service_client.h (right): https://codereview.chromium.org/1958003003/diff/430001/blimp/engine/app/blimp_metrics_service_client.h#newcode67 blimp/engine/app/blimp_metrics_service_client.h:67: // metrics::EnabledStateProvider: On 2016/05/12 17:58:46, Kevin M wrote: > ...
4 years, 7 months ago (2016-05-12 18:09:45 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1958003003/450001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1958003003/450001
4 years, 7 months ago (2016-05-12 18:38:12 UTC) #31
commit-bot: I haz the power
Committed patchset #24 (id:450001)
4 years, 7 months ago (2016-05-12 19:43:42 UTC) #33
commit-bot: I haz the power
4 years, 7 months ago (2016-05-12 19:45:15 UTC) #35
Message was sent while issue was closed.
Patchset 24 (id:??) landed as
https://crrev.com/a5d188392c54189a2a044b8c436209995db1ed9d
Cr-Commit-Position: refs/heads/master@{#393333}

Powered by Google App Engine
This is Rietveld 408576698