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

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

Created:
4 years, 1 month ago by johnme
Modified:
4 years, 1 month ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2883
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 Review-Url: https://codereview.chromium.org/2434243002 Cr-Commit-Position: refs/heads/master@{#429254} (cherry picked from commit 5f4601a5426efc4d350963048122d053128dbc0e) Committed: https://chromium.googlesource.com/chromium/src/+/4a8eb7c096a5db1368c4041f17571e3d3771c807

Patch Set 1 #

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 chunk +1 line, -1 line 0 comments Download
M google_apis/gcm/engine/gcm_unregistration_request_handler.cc View 3 chunks +1 line, -17 lines 0 comments Download
M google_apis/gcm/engine/instance_id_delete_token_request_handler.h View 1 chunk +1 line, -1 line 0 comments Download
M google_apis/gcm/engine/instance_id_delete_token_request_handler.cc View 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 3 chunks +3 lines, -3 lines 0 comments Download
M google_apis/gcm/engine/unregistration_request.cc View 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 3 chunks +11 lines, -1 line 0 comments Download

Messages

Total messages: 2 (1 generated)
johnme
4 years, 1 month ago (2016-11-03 18:19:27 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
4a8eb7c096a5db1368c4041f17571e3d3771c807.

Powered by Google App Engine
This is Rietveld 408576698