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

Issue 270783002: [GCM] Add more UMA to GCM (Closed)

Created:
6 years, 7 months ago by jianli
Modified:
6 years, 7 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, jar (doing other things), asvitkine+watch_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

[GCM] Add more UMA to GCM Also fix a bug that the default TTL value is set to 0. BUG=361374, 371149 TEST=new test added for default TTL bug Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269439

Patch Set 1 : Patch #

Patch Set 2 : Fix trybots #

Total comments: 21

Patch Set 3 : Address feedback #

Total comments: 12

Patch Set 4 : Address more feedback #

Patch Set 5 : Patch to land #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -8 lines) Patch
M chrome/browser/extensions/api/gcm/gcm_api.cc View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/gcm/gcm_apitest.cc View 3 4 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/gcm/functions/send_message_data/send_message_data.js View 1 chunk +1 line, -1 line 0 comments Download
A + chrome/test/data/extensions/api_test/gcm/functions/send_message_default_ttl/manifest.json View 1 chunk +1 line, -1 line 0 comments Download
A + chrome/test/data/extensions/api_test/gcm/functions/send_message_default_ttl/send_message_default_ttl.js View 1 chunk +0 lines, -1 line 0 comments Download
M google_apis/gcm/engine/checkin_request.h View 2 chunks +2 lines, -0 lines 0 comments Download
M google_apis/gcm/engine/checkin_request.cc View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M google_apis/gcm/engine/registration_request.h View 2 chunks +2 lines, -0 lines 0 comments Download
M google_apis/gcm/engine/registration_request.cc View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M google_apis/gcm/engine/unregistration_request.h View 2 chunks +2 lines, -0 lines 0 comments Download
M google_apis/gcm/engine/unregistration_request.cc View 1 2 3 4 2 chunks +14 lines, -4 lines 0 comments Download
M google_apis/gcm/gcm_client.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M google_apis/gcm/gcm_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M google_apis/gcm/gcm_client_impl.cc View 1 2 3 4 3 chunks +39 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 4 chunks +70 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
jianli
6 years, 7 months ago (2014-05-08 01:04:05 UTC) #1
jianli
Adding asvitkine for UMA.
6 years, 7 months ago (2014-05-08 05:50:06 UTC) #2
fgorski
https://codereview.chromium.org/270783002/diff/40001/chrome/browser/extensions/api/gcm/gcm_api.cc File chrome/browser/extensions/api/gcm/gcm_api.cc (right): https://codereview.chromium.org/270783002/diff/40001/chrome/browser/extensions/api/gcm/gcm_api.cc#newcode135 chrome/browser/extensions/api/gcm/gcm_api.cc:135: UMA_HISTOGRAM_COUNTS("GCM.UnregisterAPICall", 1); Consider using something like GCM.APICallXXX GCM.APIEventXXX And ...
6 years, 7 months ago (2014-05-08 18:08:36 UTC) #3
jianli
https://codereview.chromium.org/270783002/diff/40001/chrome/browser/extensions/api/gcm/gcm_api.cc File chrome/browser/extensions/api/gcm/gcm_api.cc (right): https://codereview.chromium.org/270783002/diff/40001/chrome/browser/extensions/api/gcm/gcm_api.cc#newcode135 chrome/browser/extensions/api/gcm/gcm_api.cc:135: UMA_HISTOGRAM_COUNTS("GCM.UnregisterAPICall", 1); On 2014/05/08 18:08:36, fgorski wrote: > Consider ...
6 years, 7 months ago (2014-05-08 18:40:07 UTC) #4
fgorski
lgtm https://codereview.chromium.org/270783002/diff/40001/google_apis/gcm/engine/unregistration_request.cc File google_apis/gcm/engine/unregistration_request.cc (right): https://codereview.chromium.org/270783002/diff/40001/google_apis/gcm/engine/unregistration_request.cc#newcode130 google_apis/gcm/engine/unregistration_request.cc:130: void UnregistrationRequest::Start() { On 2014/05/08 18:40:07, jianli wrote: ...
6 years, 7 months ago (2014-05-08 18:46:29 UTC) #5
Alexei Svitkine (slow)
https://codereview.chromium.org/270783002/diff/60001/chrome/browser/extensions/api/gcm/gcm_api.cc File chrome/browser/extensions/api/gcm/gcm_api.cc (right): https://codereview.chromium.org/270783002/diff/60001/chrome/browser/extensions/api/gcm/gcm_api.cc#newcode135 chrome/browser/extensions/api/gcm/gcm_api.cc:135: UMA_HISTOGRAM_COUNTS("GCM.APICallUnregister", 1); Use an UMA_HISTOGRAM_BOOLEAN() instead. The resulting histogram ...
6 years, 7 months ago (2014-05-08 21:21:57 UTC) #6
jianli
https://codereview.chromium.org/270783002/diff/60001/chrome/browser/extensions/api/gcm/gcm_api.cc File chrome/browser/extensions/api/gcm/gcm_api.cc (right): https://codereview.chromium.org/270783002/diff/60001/chrome/browser/extensions/api/gcm/gcm_api.cc#newcode135 chrome/browser/extensions/api/gcm/gcm_api.cc:135: UMA_HISTOGRAM_COUNTS("GCM.APICallUnregister", 1); On 2014/05/08 21:21:57, Alexei Svitkine wrote: > ...
6 years, 7 months ago (2014-05-08 21:26:07 UTC) #7
Nicolas Zea
LGTM with some naming nits https://codereview.chromium.org/270783002/diff/60001/google_apis/gcm/engine/registration_request.cc File google_apis/gcm/engine/registration_request.cc (right): https://codereview.chromium.org/270783002/diff/60001/google_apis/gcm/engine/registration_request.cc#newcode154 google_apis/gcm/engine/registration_request.cc:154: UMA_HISTOGRAM_COUNTS("GCM.RegistrationSenderNumber", I think RegistrationSenderIdCount ...
6 years, 7 months ago (2014-05-08 21:28:19 UTC) #8
Alexei Svitkine (slow)
lgtm % zea's comments When renaming the histograms per his comments, please make sure to ...
6 years, 7 months ago (2014-05-08 21:36:24 UTC) #9
jianli
All done. Will put the revised patch in CQ. https://codereview.chromium.org/270783002/diff/60001/google_apis/gcm/engine/registration_request.cc File google_apis/gcm/engine/registration_request.cc (right): https://codereview.chromium.org/270783002/diff/60001/google_apis/gcm/engine/registration_request.cc#newcode154 google_apis/gcm/engine/registration_request.cc:154: ...
6 years, 7 months ago (2014-05-08 21:40:46 UTC) #10
jianli
The CQ bit was checked by jianli@chromium.org
6 years, 7 months ago (2014-05-08 21:47:17 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jianli@chromium.org/270783002/70016
6 years, 7 months ago (2014-05-08 21:53:20 UTC) #12
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-09 03:25:16 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-09 04:33:52 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_clang_dbg/builds/15589) linux_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_rel/builds/29576)
6 years, 7 months ago (2014-05-09 04:33:52 UTC) #15
jianli
The CQ bit was checked by jianli@chromium.org
6 years, 7 months ago (2014-05-09 17:04:24 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jianli@chromium.org/270783002/110001
6 years, 7 months ago (2014-05-09 17:09:57 UTC) #17
commit-bot: I haz the power
6 years, 7 months ago (2014-05-09 22:34:11 UTC) #18
Message was sent while issue was closed.
Change committed as 269439

Powered by Google App Engine
This is Rietveld 408576698