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

Issue 2450383003: [GCM] Reset store on checkin rejection and add checkin state to internals (Closed)

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

Description

[GCM] Reset store on checkin rejection and add checkin state to internals First, this now handles cases where checkin is rejected for a non-retryable reason by resetting the GCM store. UMA data shows that this is happening less than 1% of the time, and likely implies profile corruption. Currently we do not have any way to recover from this state. Secondly, to help diagnose other checkin issues, I've also added checkin information to chrome://gcm-internals. Namely last checkin time and next scheduled checkin time. Recording is now on by default to make it easier to record checkin events. BUG=659373 Committed: https://crrev.com/76342abff9abbb4413572ebb27d8a1dd6a5c91b6 Cr-Commit-Position: refs/heads/master@{#429033}

Patch Set 1 #

Patch Set 2 : Self review #

Patch Set 3 : Fix deps #

Total comments: 10

Patch Set 4 : Address comments, limit scope of reset #

Patch Set 5 : Add test and format #

Patch Set 6 : Fix mcs probe #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -16 lines) Patch
M components/gcm_driver/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/gcm_driver/gcm_client.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/gcm_driver/gcm_client_impl.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M components/gcm_driver/gcm_client_impl.cc View 1 2 3 4 chunks +11 lines, -7 lines 0 comments Download
M components/gcm_driver/gcm_client_impl_unittest.cc View 1 2 3 4 chunks +43 lines, -1 line 0 comments Download
M components/gcm_driver/gcm_internals_constants.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/gcm_driver/gcm_internals_constants.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M components/gcm_driver/gcm_internals_helper.cc View 1 2 3 4 2 chunks +12 lines, -0 lines 0 comments Download
M components/gcm_driver/resources/gcm_internals.html View 1 chunk +14 lines, -0 lines 0 comments Download
M components/gcm_driver/resources/gcm_internals.js View 2 chunks +5 lines, -0 lines 0 comments Download
M google_apis/gcm/engine/checkin_request.h View 1 2 3 4 2 chunks +5 lines, -2 lines 0 comments Download
M google_apis/gcm/engine/checkin_request.cc View 1 2 3 3 chunks +2 lines, -3 lines 0 comments Download
M google_apis/gcm/engine/checkin_request_unittest.cc View 1 2 3 4 8 chunks +11 lines, -2 lines 0 comments Download
M google_apis/gcm/tools/mcs_probe.cc View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 31 (23 generated)
Nicolas Zea
+Peter for review.
4 years, 1 month ago (2016-10-27 20:01:23 UTC) #4
Peter Beverloo
Thanks! Generally LG, but with one concern I'd love your ideas on. https://codereview.chromium.org/2450383003/diff/40001/components/gcm_driver/gcm_client_impl.cc File components/gcm_driver/gcm_client_impl.cc ...
4 years, 1 month ago (2016-10-28 15:52:30 UTC) #12
Nicolas Zea
PTAL https://codereview.chromium.org/2450383003/diff/40001/components/gcm_driver/gcm_client_impl.cc File components/gcm_driver/gcm_client_impl.cc (right): https://codereview.chromium.org/2450383003/diff/40001/components/gcm_driver/gcm_client_impl.cc#newcode708 components/gcm_driver/gcm_client_impl.cc:708: ResetStore(); On 2016/10/28 15:52:30, Peter Beverloo wrote: > ...
4 years, 1 month ago (2016-11-01 00:18:16 UTC) #16
Peter Beverloo
lgtm https://codereview.chromium.org/2450383003/diff/40001/components/gcm_driver/gcm_client_impl.cc File components/gcm_driver/gcm_client_impl.cc (right): https://codereview.chromium.org/2450383003/diff/40001/components/gcm_driver/gcm_client_impl.cc#newcode708 components/gcm_driver/gcm_client_impl.cc:708: ResetStore(); On 2016/11/01 00:18:16, Nicolas Zea wrote: > ...
4 years, 1 month ago (2016-11-01 15:19:14 UTC) #24
Nicolas Zea
On 2016/11/01 15:19:14, Peter Beverloo wrote: > lgtm > > https://codereview.chromium.org/2450383003/diff/40001/components/gcm_driver/gcm_client_impl.cc > File components/gcm_driver/gcm_client_impl.cc (right): ...
4 years, 1 month ago (2016-11-01 17:19:15 UTC) #25
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/2450383003/100001
4 years, 1 month ago (2016-11-01 17:19:49 UTC) #27
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-11-01 17:26:28 UTC) #29
commit-bot: I haz the power
4 years, 1 month ago (2016-11-01 17:53:05 UTC) #31
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/76342abff9abbb4413572ebb27d8a1dd6a5c91b6
Cr-Commit-Position: refs/heads/master@{#429033}

Powered by Google App Engine
This is Rietveld 408576698