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

Issue 160703002: [GCM] Track connection failures properly (Closed)

Created:
6 years, 10 months ago by Nicolas Zea
Modified:
6 years, 10 months ago
CC:
chromium-reviews, Ilya Sherman, jar (doing other things), asvitkine+watch_chromium.org
Visibility:
Public.

Description

[GCM] Track connection failures properly This patch consolidates the reset logic and adds a reason for the reset, for use in histograms. Additionally, connection uptime and overall success rate are now tracked as well. BUG=284553 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251186

Patch Set 1 #

Patch Set 2 : Self review and add connection success rate #

Total comments: 5

Patch Set 3 : Fix comment #

Total comments: 4

Patch Set 4 : Update comment #

Total comments: 2

Patch Set 5 : Fix histogram comment #

Patch Set 6 : Fix include, rebase #

Patch Set 7 : Reupload #

Patch Set 8 : Reupload #

Patch Set 9 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -46 lines) Patch
M google_apis/gcm/engine/connection_factory.h View 1 2 chunks +13 lines, -1 line 0 comments Download
M google_apis/gcm/engine/connection_factory_impl.h View 1 2 3 4 5 3 chunks +14 lines, -4 lines 0 comments Download
M google_apis/gcm/engine/connection_factory_impl.cc View 1 6 chunks +68 lines, -29 lines 0 comments Download
M google_apis/gcm/engine/connection_factory_impl_unittest.cc View 4 chunks +5 lines, -5 lines 0 comments Download
M google_apis/gcm/engine/fake_connection_factory.h View 1 1 chunk +14 lines, -1 line 0 comments Download
M google_apis/gcm/engine/fake_connection_factory.cc View 2 chunks +9 lines, -3 lines 0 comments Download
M google_apis/gcm/engine/fake_connection_handler.cc View 1 chunk +1 line, -0 lines 0 comments Download
M google_apis/gcm/engine/mcs_client.cc View 1 2 3 4 5 3 chunks +7 lines, -2 lines 0 comments Download
M google_apis/gcm/engine/mcs_client_unittest.cc View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +25 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
Nicolas Zea
PTAL
6 years, 10 months ago (2014-02-12 18:56:34 UTC) #1
fgorski
a couple of comments. https://codereview.chromium.org/160703002/diff/30001/google_apis/gcm/engine/connection_factory_impl.cc File google_apis/gcm/engine/connection_factory_impl.cc (right): https://codereview.chromium.org/160703002/diff/30001/google_apis/gcm/engine/connection_factory_impl.cc#newcode118 google_apis/gcm/engine/connection_factory_impl.cc:118: UMA_HISTOGRAM_ENUMERATION("GCM.ConnectionResetReason", Perhaps we could wrap ...
6 years, 10 months ago (2014-02-12 19:24:01 UTC) #2
Nicolas Zea
https://codereview.chromium.org/160703002/diff/30001/google_apis/gcm/engine/connection_factory_impl.cc File google_apis/gcm/engine/connection_factory_impl.cc (right): https://codereview.chromium.org/160703002/diff/30001/google_apis/gcm/engine/connection_factory_impl.cc#newcode118 google_apis/gcm/engine/connection_factory_impl.cc:118: UMA_HISTOGRAM_ENUMERATION("GCM.ConnectionResetReason", On 2014/02/12 19:24:01, Filip Gorski wrote: > Perhaps ...
6 years, 10 months ago (2014-02-12 21:50:15 UTC) #3
fgorski
lgtm with nit https://codereview.chromium.org/160703002/diff/30001/google_apis/gcm/engine/connection_factory_impl.cc File google_apis/gcm/engine/connection_factory_impl.cc (right): https://codereview.chromium.org/160703002/diff/30001/google_apis/gcm/engine/connection_factory_impl.cc#newcode118 google_apis/gcm/engine/connection_factory_impl.cc:118: UMA_HISTOGRAM_ENUMERATION("GCM.ConnectionResetReason", On 2014/02/12 21:50:16, Nicolas Zea ...
6 years, 10 months ago (2014-02-12 21:56:27 UTC) #4
Nicolas Zea
Done. +Alexei for histograms
6 years, 10 months ago (2014-02-12 22:04:12 UTC) #5
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/160703002/diff/160001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/160703002/diff/160001/tools/metrics/histograms/histograms.xml#newcode5502 tools/metrics/histograms/histograms.xml:5502: + Time (from login until reset) that a ...
6 years, 10 months ago (2014-02-12 22:15:36 UTC) #6
jianli
lgtm https://codereview.chromium.org/160703002/diff/100001/google_apis/gcm/engine/connection_factory_impl.h File google_apis/gcm/engine/connection_factory_impl.h (right): https://codereview.chromium.org/160703002/diff/100001/google_apis/gcm/engine/connection_factory_impl.h#newcode112 google_apis/gcm/engine/connection_factory_impl.h:112: base::TimeTicks last_login_time_; nit: include file for base::TimeTicks
6 years, 10 months ago (2014-02-12 22:20:58 UTC) #7
Nicolas Zea
All comments addressed, committing via CQ https://codereview.chromium.org/160703002/diff/100001/google_apis/gcm/engine/connection_factory_impl.h File google_apis/gcm/engine/connection_factory_impl.h (right): https://codereview.chromium.org/160703002/diff/100001/google_apis/gcm/engine/connection_factory_impl.h#newcode94 google_apis/gcm/engine/connection_factory_impl.h:94: // Connection attempt ...
6 years, 10 months ago (2014-02-12 22:27:34 UTC) #8
Nicolas Zea
The CQ bit was checked by zea@chromium.org
6 years, 10 months ago (2014-02-12 22:27:40 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/160703002/280001
6 years, 10 months ago (2014-02-12 22:29:43 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-12 22:29:46 UTC) #11
commit-bot: I haz the power
No file was found in this patchset.
6 years, 10 months ago (2014-02-12 22:29:47 UTC) #12
Nicolas Zea
The CQ bit was checked by zea@chromium.org
6 years, 10 months ago (2014-02-12 22:42:21 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/160703002/160001
6 years, 10 months ago (2014-02-12 23:01:38 UTC) #14
commit-bot: I haz the power
Failed to trigger a try job on win_rel HTTP Error 400: Bad Request
6 years, 10 months ago (2014-02-12 23:01:52 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/160703002/380001
6 years, 10 months ago (2014-02-12 23:08:21 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-13 01:17:04 UTC) #17
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=262958
6 years, 10 months ago (2014-02-13 01:17:05 UTC) #18
Nicolas Zea
The CQ bit was checked by zea@chromium.org
6 years, 10 months ago (2014-02-13 18:03:29 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/160703002/380001
6 years, 10 months ago (2014-02-13 18:04:03 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/160703002/380001
6 years, 10 months ago (2014-02-13 19:54:51 UTC) #21
Nicolas Zea
The CQ bit was checked by zea@chromium.org
6 years, 10 months ago (2014-02-13 20:55:49 UTC) #22
commit-bot: I haz the power
Commit queue failed due to new patchset.
6 years, 10 months ago (2014-02-13 21:37:39 UTC) #23
Nicolas Zea
The CQ bit was unchecked by zea@chromium.org
6 years, 10 months ago (2014-02-13 21:39:05 UTC) #24
Nicolas Zea
The CQ bit was checked by zea@chromium.org
6 years, 10 months ago (2014-02-13 21:39:06 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/160703002/830001
6 years, 10 months ago (2014-02-13 21:43:07 UTC) #26
commit-bot: I haz the power
6 years, 10 months ago (2014-02-13 23:36:45 UTC) #27
Message was sent while issue was closed.
Change committed as 251186

Powered by Google App Engine
This is Rietveld 408576698