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

Issue 910093003: Reset the GCM store to recover from it when it is busted (Closed)

Created:
5 years, 10 months ago by jianli
Modified:
5 years, 10 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reset the GCM store to recover from it when it is busted Also update the UMA to include details BUG=435387 TEST=new test added Committed: https://crrev.com/00b4600fb94befdc77ceb76ff2913b14fcc0cbeb Cr-Commit-Position: refs/heads/master@{#315673}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Address feedback #

Total comments: 4

Patch Set 3 : Address more feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -30 lines) Patch
M components/gcm_driver/gcm_client_impl.h View 3 chunks +9 lines, -2 lines 0 comments Download
M components/gcm_driver/gcm_client_impl.cc View 1 2 7 chunks +44 lines, -5 lines 0 comments Download
M components/gcm_driver/gcm_client_impl_unittest.cc View 1 4 chunks +34 lines, -0 lines 0 comments Download
M google_apis/gcm/engine/gcm_store_impl.cc View 1 2 5 chunks +59 lines, -23 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 4 chunks +34 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (5 generated)
jianli
5 years, 10 months ago (2015-02-10 00:51:48 UTC) #2
jianli
Adding asvitkine for histograms.xml
5 years, 10 months ago (2015-02-10 00:52:54 UTC) #4
Alexei Svitkine (slow)
https://codereview.chromium.org/910093003/diff/1/components/gcm_driver/gcm_client_impl.cc File components/gcm_driver/gcm_client_impl.cc (right): https://codereview.chromium.org/910093003/diff/1/components/gcm_driver/gcm_client_impl.cc#newcode12 components/gcm_driver/gcm_client_impl.cc:12: #include "base/metrics/histogram.h" Nit: Change this to histogram_macros.h instead. https://codereview.chromium.org/910093003/diff/1/components/gcm_driver/gcm_client_impl.cc#newcode447 ...
5 years, 10 months ago (2015-02-10 13:47:06 UTC) #5
fgorski
lgtm with minor nits https://codereview.chromium.org/910093003/diff/1/components/gcm_driver/gcm_client_impl_unittest.cc File components/gcm_driver/gcm_client_impl_unittest.cc (right): https://codereview.chromium.org/910093003/diff/1/components/gcm_driver/gcm_client_impl_unittest.cc#newcode624 components/gcm_driver/gcm_client_impl_unittest.cc:624: // Restart GCM client. The ...
5 years, 10 months ago (2015-02-10 18:31:31 UTC) #6
Nicolas Zea
https://codereview.chromium.org/910093003/diff/1/components/gcm_driver/gcm_client_impl.cc File components/gcm_driver/gcm_client_impl.cc (right): https://codereview.chromium.org/910093003/diff/1/components/gcm_driver/gcm_client_impl.cc#newcode656 components/gcm_driver/gcm_client_impl.cc:656: "GCM.ResetStore", DESTROYING_STORE_FAILED, RESET_STORE_ERROR_COUNT); Why is this saying we failed? ...
5 years, 10 months ago (2015-02-10 18:59:46 UTC) #7
jianli
https://codereview.chromium.org/910093003/diff/1/components/gcm_driver/gcm_client_impl.cc File components/gcm_driver/gcm_client_impl.cc (right): https://codereview.chromium.org/910093003/diff/1/components/gcm_driver/gcm_client_impl.cc#newcode12 components/gcm_driver/gcm_client_impl.cc:12: #include "base/metrics/histogram.h" On 2015/02/10 13:47:06, Alexei Svitkine wrote: > ...
5 years, 10 months ago (2015-02-10 19:45:14 UTC) #9
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/910093003/diff/20001/components/gcm_driver/gcm_client_impl.cc File components/gcm_driver/gcm_client_impl.cc (right): https://codereview.chromium.org/910093003/diff/20001/components/gcm_driver/gcm_client_impl.cc#newcode192 components/gcm_driver/gcm_client_impl.cc:192: UMA_HISTOGRAM_ENUMERATION("GCM.ResetStore", error, RESET_STORE_ERROR_COUNT); Nit: Indent 2 less.
5 years, 10 months ago (2015-02-10 19:51:25 UTC) #10
Nicolas Zea
https://codereview.chromium.org/910093003/diff/20001/google_apis/gcm/engine/gcm_store_impl.cc File google_apis/gcm/engine/gcm_store_impl.cc (right): https://codereview.chromium.org/910093003/diff/20001/google_apis/gcm/engine/gcm_store_impl.cc#newcode282 google_apis/gcm/engine/gcm_store_impl.cc:282: UMA_HISTOGRAM_ENUMERATION("GCM.LoadStatus", load_status, LOAD_STATUS_COUNT); Did you not want to record ...
5 years, 10 months ago (2015-02-10 21:07:37 UTC) #11
jianli
https://codereview.chromium.org/910093003/diff/20001/components/gcm_driver/gcm_client_impl.cc File components/gcm_driver/gcm_client_impl.cc (right): https://codereview.chromium.org/910093003/diff/20001/components/gcm_driver/gcm_client_impl.cc#newcode192 components/gcm_driver/gcm_client_impl.cc:192: UMA_HISTOGRAM_ENUMERATION("GCM.ResetStore", error, RESET_STORE_ERROR_COUNT); On 2015/02/10 19:51:24, Alexei Svitkine wrote: ...
5 years, 10 months ago (2015-02-10 21:11:53 UTC) #13
Nicolas Zea
lgtm
5 years, 10 months ago (2015-02-10 21:33:49 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/910093003/40001
5 years, 10 months ago (2015-02-10 21:51:22 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 10 months ago (2015-02-10 23:33:00 UTC) #17
commit-bot: I haz the power
5 years, 10 months ago (2015-02-10 23:33:39 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/00b4600fb94befdc77ceb76ff2913b14fcc0cbeb
Cr-Commit-Position: refs/heads/master@{#315673}

Powered by Google App Engine
This is Rietveld 408576698