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

Issue 573403002: Change UMA proto product field to be an int32. (Closed)

Created:
6 years, 3 months ago by Alexei Svitkine (slow)
Modified:
6 years, 2 months ago
Reviewers:
Ilya Sherman, gunsch
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, lcwu+watch_chromium.org, Ilya Sherman, asvitkine+watch_chromium.org, extensions-reviews_chromium.org, bsimonnet, nathanbullock_google.com, gauravsh
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Change UMA proto product field to be an int32. This makes it easier for downstream clients of the component to add new product types without needing to update the component source. Also, adds a client method to return the product, so that different MetricsService clients can provide different values. Also cleans up some unnecessary metrics:: namespace prefixes. BUG=415581 Committed: https://crrev.com/4c1d1ef9c811b58e83bff3e9cd8012d801bfa88b Cr-Commit-Position: refs/heads/master@{#297254}

Patch Set 1 : #

Total comments: 6

Patch Set 2 : Address comments and add a couple of tests. #

Patch Set 3 : Address comments and add a couple of tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -54 lines) Patch
M chrome/browser/metrics/chrome_metrics_service_client.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chromecast/metrics/cast_metrics_service_client.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chromecast/metrics/cast_metrics_service_client.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M components/metrics/metrics_log.cc View 1 11 chunks +40 lines, -38 lines 0 comments Download
M components/metrics/metrics_log_unittest.cc View 1 2 4 chunks +36 lines, -12 lines 0 comments Download
M components/metrics/metrics_service_client.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M components/metrics/proto/chrome_user_metrics_extension.proto View 1 chunk +7 lines, -3 lines 0 comments Download
M components/metrics/test_metrics_service_client.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M components/metrics/test_metrics_service_client.cc View 1 3 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 17 (7 generated)
Alexei Svitkine (slow)
6 years, 2 months ago (2014-09-25 16:55:32 UTC) #4
gunsch
On 2014/09/25 16:55:32, Alexei Svitkine wrote: chromecast/ lgtm
6 years, 2 months ago (2014-09-25 16:57:37 UTC) #5
Ilya Sherman
Is it worth adding a test to verify that the default product value is not ...
6 years, 2 months ago (2014-09-25 18:29:55 UTC) #6
Alexei Svitkine (slow)
https://codereview.chromium.org/573403002/diff/40001/components/metrics/metrics_log.cc File components/metrics/metrics_log.cc (right): https://codereview.chromium.org/573403002/diff/40001/components/metrics/metrics_log.cc#newcode130 components/metrics/metrics_log.cc:130: prefs::kStabilityIncompleteSessionEndCount, 0); On 2014/09/25 18:29:55, Ilya Sherman wrote: > ...
6 years, 2 months ago (2014-09-26 16:51:10 UTC) #8
Ilya Sherman
LGTM, thanks.
6 years, 2 months ago (2014-09-26 17:24:42 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/573403002/100001
6 years, 2 months ago (2014-09-29 13:37:36 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/8028)
6 years, 2 months ago (2014-09-29 14:33:30 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/573403002/100001
6 years, 2 months ago (2014-09-29 20:37:14 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:100001) as b794aa919a1da0af5baac40fb9d86e94b8bec00d
6 years, 2 months ago (2014-09-29 20:57:41 UTC) #16
commit-bot: I haz the power
6 years, 2 months ago (2014-09-29 20:58:32 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4c1d1ef9c811b58e83bff3e9cd8012d801bfa88b
Cr-Commit-Position: refs/heads/master@{#297254}

Powered by Google App Engine
This is Rietveld 408576698