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

Issue 2935623004: [Cleanup] Clean up the VariationsSeedStore's histograms. (Closed)

Created:
3 years, 6 months ago by Ilya Sherman
Modified:
3 years, 6 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Cleanup] Clean up the VariationsSeedStore's histograms. * Rename Variations.SeedEmpty to Variations.SeedLoadResult, and only record it when loading the seed on startup. (Previously, half of the enum values were also recorded when storing a seed, which makes the metric quite confusing to interpret.) * Use enum classes in place of regular enums (IMO this makes the constant names a bit easier to read.) * Move most of the metrics recording code out of the variations_seed_store.cc implementation file into a separate helper file. BUG=none TEST=none R=asvitkine@chromium.org Review-Url: https://codereview.chromium.org/2935623004 Cr-Commit-Position: refs/heads/master@{#479411} Committed: https://chromium.googlesource.com/chromium/src/+/5f556b51553f6a8b163987dc56594f337192f38d

Patch Set 1 #

Patch Set 2 : Remove a copy/pasta error #

Patch Set 3 : Fix the unit tests #

Patch Set 4 : Fix tests on iOS and Android #

Total comments: 4

Patch Set 5 : Test signature verification on Android and iOS too. #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+364 lines, -221 lines) Patch
M components/variations/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A components/variations/metrics.h View 1 chunk +95 lines, -0 lines 0 comments Download
A components/variations/metrics.cc View 1 chunk +28 lines, -0 lines 0 comments Download
M components/variations/variations_seed_store.h View 1 2 3 4 5 6 chunks +12 lines, -25 lines 0 comments Download
M components/variations/variations_seed_store.cc View 1 2 3 4 5 15 chunks +92 lines, -154 lines 0 comments Download
M components/variations/variations_seed_store_unittest.cc View 1 2 3 4 5 6 chunks +111 lines, -31 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 4 5 2 chunks +8 lines, -8 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 2 chunks +16 lines, -3 lines 0 comments Download

Messages

Total messages: 31 (25 generated)
Ilya Sherman
3 years, 6 months ago (2017-06-13 02:24:49 UTC) #1
Alexei Svitkine (slow)
https://codereview.chromium.org/2935623004/diff/60001/components/variations/variations_seed_store.cc File components/variations/variations_seed_store.cc (right): https://codereview.chromium.org/2935623004/diff/60001/components/variations/variations_seed_store.cc#newcode322 components/variations/variations_seed_store.cc:322: if (base64_seed_data.empty()) { Nit: No {}s https://codereview.chromium.org/2935623004/diff/60001/components/variations/variations_seed_store_unittest.cc File components/variations/variations_seed_store_unittest.cc ...
3 years, 6 months ago (2017-06-13 15:26:37 UTC) #16
Ilya Sherman
https://codereview.chromium.org/2935623004/diff/60001/components/variations/variations_seed_store.cc File components/variations/variations_seed_store.cc (right): https://codereview.chromium.org/2935623004/diff/60001/components/variations/variations_seed_store.cc#newcode322 components/variations/variations_seed_store.cc:322: if (base64_seed_data.empty()) { On 2017/06/13 15:26:37, Alexei Svitkine (slow) ...
3 years, 6 months ago (2017-06-13 22:33:35 UTC) #17
Alexei Svitkine (slow)
lgtm, thanks
3 years, 6 months ago (2017-06-14 15:02:58 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2935623004/100001
3 years, 6 months ago (2017-06-14 16:19:08 UTC) #28
commit-bot: I haz the power
3 years, 6 months ago (2017-06-14 16:27:40 UTC) #31
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/5f556b51553f6a8b163987dc5659...

Powered by Google App Engine
This is Rietveld 408576698