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

Issue 238443008: Make VariationsService simulate received seeds. (Closed)

Created:
6 years, 8 months ago by Alexei Svitkine (slow)
Modified:
6 years, 7 months ago
Reviewers:
Ilya Sherman, jwd
CC:
chromium-reviews, erikwright+watch_chromium.org, jar (doing other things), asvitkine+watch_chromium.org
Visibility:
Public.

Description

Make VariationsService simulate received seeds. Uses VariationsSeedSimulator to simulate incoming variation seeds and log the results of simulation in histograms, as well as the amount of time taken. Makes VariationsService take a MetricsStateManager parameter for creating the entropy provider. BUG=281474, 315807 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269899

Patch Set 1 : #

Total comments: 4

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -28 lines) Patch
M chrome/browser/metrics/metrics_services_manager.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/metrics/variations/variations_seed_store.h View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/metrics/variations/variations_seed_store.cc View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/metrics/variations/variations_seed_store_unittest.cc View 1 2 3 4 4 chunks +20 lines, -3 lines 0 comments Download
M chrome/browser/metrics/variations/variations_service.h View 1 2 3 4 5 chunks +24 lines, -6 lines 0 comments Download
M chrome/browser/metrics/variations/variations_service.cc View 1 2 3 4 6 chunks +58 lines, -7 lines 0 comments Download
M chrome/browser/metrics/variations/variations_service_unittest.cc View 1 2 3 4 3 chunks +7 lines, -7 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +42 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
Alexei Svitkine (slow)
6 years, 8 months ago (2014-04-24 18:27:33 UTC) #1
Ilya Sherman
Sorry, didn't quite get to this today; will try to review by EOD tomorrow.
6 years, 8 months ago (2014-04-25 06:27:45 UTC) #2
jwd
https://codereview.chromium.org/238443008/diff/70001/chrome/browser/metrics/variations/variations_seed_store.cc File chrome/browser/metrics/variations/variations_seed_store.cc (right): https://codereview.chromium.org/238443008/diff/70001/chrome/browser/metrics/variations/variations_seed_store.cc#newcode166 chrome/browser/metrics/variations/variations_seed_store.cc:166: VariationsSeed* seed) { Should you check that seed isn't ...
6 years, 8 months ago (2014-04-25 14:30:33 UTC) #3
Alexei Svitkine (slow)
https://codereview.chromium.org/238443008/diff/70001/chrome/browser/metrics/variations/variations_seed_store.cc File chrome/browser/metrics/variations/variations_seed_store.cc (right): https://codereview.chromium.org/238443008/diff/70001/chrome/browser/metrics/variations/variations_seed_store.cc#newcode166 chrome/browser/metrics/variations/variations_seed_store.cc:166: VariationsSeed* seed) { Changed logic to allow passing NULL ...
6 years, 8 months ago (2014-04-25 15:21:45 UTC) #4
jwd
https://codereview.chromium.org/238443008/diff/110001/chrome/browser/metrics/variations/variations_seed_store.h File chrome/browser/metrics/variations/variations_seed_store.h (right): https://codereview.chromium.org/238443008/diff/110001/chrome/browser/metrics/variations/variations_seed_store.h#newcode38 chrome/browser/metrics/variations/variations_seed_store.h:38: // with the de-serialized protobuf decoded from |seed_data|. Can ...
6 years, 8 months ago (2014-04-25 15:29:22 UTC) #5
Alexei Svitkine (slow)
https://codereview.chromium.org/238443008/diff/110001/chrome/browser/metrics/variations/variations_seed_store.h File chrome/browser/metrics/variations/variations_seed_store.h (right): https://codereview.chromium.org/238443008/diff/110001/chrome/browser/metrics/variations/variations_seed_store.h#newcode38 chrome/browser/metrics/variations/variations_seed_store.h:38: // with the de-serialized protobuf decoded from |seed_data|. On ...
6 years, 8 months ago (2014-04-25 15:43:36 UTC) #6
jwd
lgtm
6 years, 8 months ago (2014-04-25 15:50:53 UTC) #7
Ilya Sherman
It looks like you only need to expose the entropy provider so that you can ...
6 years, 8 months ago (2014-04-25 18:40:53 UTC) #8
Alexei Svitkine (slow)
On 2014/04/25 18:40:53, Ilya Sherman wrote: > It looks like you only need to expose ...
6 years, 7 months ago (2014-04-28 18:28:21 UTC) #9
Ilya Sherman
On 2014/04/28 18:28:21, Alexei Svitkine wrote: > So actually, to make the simulation more correct ...
6 years, 7 months ago (2014-04-28 19:40:47 UTC) #10
Alexei Svitkine (slow)
It's an interesting question and I've been thinking about it too. One challenge is that ...
6 years, 7 months ago (2014-04-28 20:16:58 UTC) #11
Ilya Sherman
On 2014/04/28 20:16:58, Alexei Svitkine wrote: > WDYT about this general approach? Generally sounds good. ...
6 years, 7 months ago (2014-04-28 20:57:08 UTC) #12
Alexei Svitkine (slow)
Good point. Maybe we should have a MetricsServicesManager which will own VariationsService, MetricsService and RapporService. ...
6 years, 7 months ago (2014-04-28 21:01:25 UTC) #13
Alexei Svitkine (slow)
Reviewers, please have another look. I've now rebased this on my latest changes and make ...
6 years, 7 months ago (2014-05-09 15:24:29 UTC) #14
Ilya Sherman
LGTM, thanks. Note: I only skimmed the variations changes. https://codereview.chromium.org/238443008/diff/140001/chrome/browser/metrics/variations/variations_service.cc File chrome/browser/metrics/variations/variations_service.cc (right): https://codereview.chromium.org/238443008/diff/140001/chrome/browser/metrics/variations/variations_service.cc#newcode415 chrome/browser/metrics/variations/variations_service.cc:415: ...
6 years, 7 months ago (2014-05-09 23:50:28 UTC) #15
jwd
lgtm
6 years, 7 months ago (2014-05-12 14:57:31 UTC) #16
Alexei Svitkine (slow)
https://codereview.chromium.org/238443008/diff/140001/chrome/browser/metrics/variations/variations_service.cc File chrome/browser/metrics/variations/variations_service.cc (right): https://codereview.chromium.org/238443008/diff/140001/chrome/browser/metrics/variations/variations_service.cc#newcode415 chrome/browser/metrics/variations/variations_service.cc:415: // manager may be NULL for some unit tests. ...
6 years, 7 months ago (2014-05-12 15:00:43 UTC) #17
Alexei Svitkine (slow)
The CQ bit was checked by asvitkine@chromium.org
6 years, 7 months ago (2014-05-12 15:00:48 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/238443008/140001
6 years, 7 months ago (2014-05-12 15:00:58 UTC) #19
Alexei Svitkine (slow)
The CQ bit was unchecked by asvitkine@chromium.org
6 years, 7 months ago (2014-05-12 15:01:12 UTC) #20
Alexei Svitkine (slow)
The CQ bit was checked by asvitkine@chromium.org
6 years, 7 months ago (2014-05-12 15:09:31 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/238443008/180001
6 years, 7 months ago (2014-05-12 15:09:48 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-12 18:20:04 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-12 19:31:27 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/153078)
6 years, 7 months ago (2014-05-12 19:31:28 UTC) #25
Alexei Svitkine (slow)
The CQ bit was checked by asvitkine@chromium.org
6 years, 7 months ago (2014-05-12 19:40:10 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/238443008/180001
6 years, 7 months ago (2014-05-12 19:41:34 UTC) #27
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-12 21:04:42 UTC) #28
commit-bot: I haz the power
6 years, 7 months ago (2014-05-12 22:49:42 UTC) #29
Message was sent while issue was closed.
Change committed as 269899

Powered by Google App Engine
This is Rietveld 408576698