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

Issue 2434243002: GCM Engine: Split up reg/unreg UNKNOWN_ERROR to improve metrics (Closed)

Created:
4 years, 2 months ago by johnme
Modified:
4 years, 1 month ago
CC:
chromium-reviews, Peter Beverloo, johnme+watch_chromium.org, asvitkine+watch_chromium.org, zea+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

GCM Engine: Split up reg/unreg UNKNOWN_ERROR to improve metrics When the GCM server handles registration/unregistration requests, it can return several specific error names that Chrome's GCM Engine was lumping together as UNKNOWN_ERROR. This patch splits them out into distinct enum values, so we'll be able to compare their occurrence rates using UMA and get more precise bug reports from users reading chrome://gcm-internals. UNKNOWN_ERROR should no longer occur... until GCM next add new error types anyway. The patch also removes some code duplication between GCMUnregistrationRequestHandler and InstanceIDDeleteTokenRequestHandler, but it stops short of merging RegistrationRequest and UnregistrationRequest since this patch may need to be merged to m55. There should be minimal functional changes, except that we will no longer auto-retry QUOTA_EXCEEDED and TOO_MANY_REGISTRATIONS registration errors, which were unlikely to succeed when retried anyway. BUG=623062 Committed: https://crrev.com/5f4601a5426efc4d350963048122d053128dbc0e Cr-Commit-Position: refs/heads/master@{#429254}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address review comments #

Patch Set 3 : mid-cycle -> mid-beta #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -60 lines) Patch
M components/gcm_driver/gcm_stats_recorder_impl.cc View 2 chunks +10 lines, -0 lines 0 comments Download
M google_apis/gcm/engine/gcm_unregistration_request_handler.h View 1 1 chunk +1 line, -1 line 0 comments Download
M google_apis/gcm/engine/gcm_unregistration_request_handler.cc View 1 3 chunks +1 line, -17 lines 0 comments Download
M google_apis/gcm/engine/instance_id_delete_token_request_handler.h View 1 1 chunk +1 line, -1 line 0 comments Download
M google_apis/gcm/engine/instance_id_delete_token_request_handler.cc View 1 2 chunks +1 line, -17 lines 0 comments Download
M google_apis/gcm/engine/registration_request.h View 1 chunk +4 lines, -0 lines 0 comments Download
M google_apis/gcm/engine/registration_request.cc View 4 chunks +28 lines, -17 lines 0 comments Download
M google_apis/gcm/engine/registration_request_unittest.cc View 3 chunks +60 lines, -0 lines 0 comments Download
M google_apis/gcm/engine/unregistration_request.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M google_apis/gcm/engine/unregistration_request.cc View 1 4 chunks +37 lines, -3 lines 0 comments Download
M google_apis/gcm/engine/unregistration_request_unittest.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 chunks +11 lines, -1 line 0 comments Download

Messages

Total messages: 18 (8 generated)
johnme
4 years, 2 months ago (2016-10-20 17:05:30 UTC) #2
Nicolas Zea
LGTM with some nits. I also wonder if it's worth mentioning in the histogram description ...
4 years, 2 months ago (2016-10-20 21:05:23 UTC) #3
johnme
Addressed review comments - thanks :) > I also wonder if it's worth mentioning in ...
4 years, 1 month ago (2016-11-01 14:15:40 UTC) #4
johnme
isherman: please review histograms - thanks :)
4 years, 1 month ago (2016-11-01 14:16:19 UTC) #6
Ilya Sherman
histograms lgtm. Typically I'd recommend renaming the histogram for a semantic change like this; but ...
4 years, 1 month ago (2016-11-01 21:26:08 UTC) #7
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/2434243002/20001
4 years, 1 month ago (2016-11-02 11:18:32 UTC) #10
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/2434243002/40001
4 years, 1 month ago (2016-11-02 11:20:23 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-02 12:22:56 UTC) #15
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/5f4601a5426efc4d350963048122d053128dbc0e Cr-Commit-Position: refs/heads/master@{#429254}
4 years, 1 month ago (2016-11-02 12:24:46 UTC) #17
johnme
4 years, 1 month ago (2016-11-03 18:37:09 UTC) #18
Message was sent while issue was closed.
Cherry-picked to M55 in https://codereview.chromium.org/2474153002 as
5f4601a5426efc4d350963048122d053128dbc0e 2883@{#441}

Powered by Google App Engine
This is Rietveld 408576698