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

Issue 2481873002: Added ClientEvent proto and structure for storing events in the factory. (Closed)

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

Description

Added ClientEvent proto and structure for storing events in the factory. As part of the project to record GCM connection errors in Chrome, this CL adds the ClientEvent to the proto for the LoginRequest that goes to GCM. It also adds local structures to record previous connection attempts, although persisting the information and using it to construct the login request is in a subsequent CL. Tests were also updated to check that events were being recorded corectly in old test cases, and a new test case was added to check wrapping on the storage. BUG=662983 Committed: https://crrev.com/1a49d60bd22ef9ccb97619ba3441bbd89f4b0c3e Cr-Commit-Position: refs/heads/master@{#436584}

Patch Set 1 #

Total comments: 22

Patch Set 2 : Added ConnectionEventTracker to manage all the events. #

Total comments: 49

Patch Set 3 : Rebase and address code review comments. #

Total comments: 24

Patch Set 4 : Integrated code review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+309 lines, -6 lines) Patch
M google_apis/gcm/BUILD.gn View 1 2 chunks +3 lines, -0 lines 0 comments Download
A google_apis/gcm/engine/connection_event_tracker.h View 1 2 3 1 chunk +57 lines, -0 lines 0 comments Download
A google_apis/gcm/engine/connection_event_tracker.cc View 1 2 3 1 chunk +86 lines, -0 lines 0 comments Download
A google_apis/gcm/engine/connection_event_tracker_unittest.cc View 1 2 1 chunk +37 lines, -0 lines 0 comments Download
M google_apis/gcm/engine/connection_factory_impl.h View 1 2 3 4 chunks +15 lines, -4 lines 0 comments Download
M google_apis/gcm/engine/connection_factory_impl.cc View 1 2 3 6 chunks +19 lines, -0 lines 0 comments Download
M google_apis/gcm/engine/connection_factory_impl_unittest.cc View 1 2 3 5 chunks +51 lines, -2 lines 0 comments Download
M google_apis/gcm/protocol/mcs.proto View 1 2 chunks +41 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (8 generated)
harkness
CL 1 of 3, this tracks the previous ClientEvents. Next will be storing them, then ...
4 years, 1 month ago (2016-11-07 17:55:53 UTC) #3
Peter Beverloo
Thanks! Please read the comments before making changes -- depending on what you choose to ...
4 years ago (2016-11-28 15:05:16 UTC) #4
harkness
https://codereview.chromium.org/2481873002/diff/1/google_apis/gcm/engine/connection_factory_impl.cc File google_apis/gcm/engine/connection_factory_impl.cc (right): https://codereview.chromium.org/2481873002/diff/1/google_apis/gcm/engine/connection_factory_impl.cc#newcode48 google_apis/gcm/engine/connection_factory_impl.cc:48: const int kMaxClientEvents = 30; On 2016/11/28 15:05:15, Peter ...
4 years ago (2016-12-01 10:34:35 UTC) #5
Nicolas Zea
Drive-by with some small comments and a suggestion for network type handling. https://codereview.chromium.org/2481873002/diff/20001/google_apis/gcm/engine/connection_event_tracker.cc File google_apis/gcm/engine/connection_event_tracker.cc ...
4 years ago (2016-12-01 18:51:49 UTC) #7
Peter Beverloo
https://codereview.chromium.org/2481873002/diff/20001/google_apis/gcm/engine/connection_event_tracker.cc File google_apis/gcm/engine/connection_event_tracker.cc (right): https://codereview.chromium.org/2481873002/diff/20001/google_apis/gcm/engine/connection_event_tracker.cc#newcode14 google_apis/gcm/engine/connection_event_tracker.cc:14: const int kMaxClientEvents = 30; nit: constexpr size_t kMaxClientEvents ...
4 years ago (2016-12-02 15:19:13 UTC) #8
harkness
https://codereview.chromium.org/2481873002/diff/20001/google_apis/gcm/engine/connection_event_tracker.cc File google_apis/gcm/engine/connection_event_tracker.cc (right): https://codereview.chromium.org/2481873002/diff/20001/google_apis/gcm/engine/connection_event_tracker.cc#newcode14 google_apis/gcm/engine/connection_event_tracker.cc:14: const int kMaxClientEvents = 30; On 2016/12/01 18:51:49, Nicolas ...
4 years ago (2016-12-05 15:39:01 UTC) #9
Peter Beverloo
lgtm https://codereview.chromium.org/2481873002/diff/20001/google_apis/gcm/engine/connection_factory_impl.cc File google_apis/gcm/engine/connection_factory_impl.cc (right): https://codereview.chromium.org/2481873002/diff/20001/google_apis/gcm/engine/connection_factory_impl.cc#newcode210 google_apis/gcm/engine/connection_factory_impl.cc:210: event_tracker_.EndConnectionAttempt(); On 2016/12/05 15:39:01, harkness wrote: > On ...
4 years ago (2016-12-05 16:29:35 UTC) #10
Nicolas Zea
LGTM modulo Peter's comments/maybe adding back the DCHECK mentioned below https://codereview.chromium.org/2481873002/diff/40001/google_apis/gcm/engine/connection_event_tracker.cc File google_apis/gcm/engine/connection_event_tracker.cc (right): https://codereview.chromium.org/2481873002/diff/40001/google_apis/gcm/engine/connection_event_tracker.cc#newcode25 ...
4 years ago (2016-12-05 18:36:15 UTC) #11
harkness
https://codereview.chromium.org/2481873002/diff/40001/google_apis/gcm/engine/connection_event_tracker.cc File google_apis/gcm/engine/connection_event_tracker.cc (right): https://codereview.chromium.org/2481873002/diff/40001/google_apis/gcm/engine/connection_event_tracker.cc#newcode8 google_apis/gcm/engine/connection_event_tracker.cc:8: #include "google_apis/gcm/protocol/mcs.pb.h" On 2016/12/05 16:29:34, Peter Beverloo wrote: > ...
4 years ago (2016-12-06 12:53:36 UTC) #12
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/2481873002/60001
4 years ago (2016-12-06 12:54:11 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-06 14:13:16 UTC) #18
commit-bot: I haz the power
4 years ago (2016-12-06 14:15:33 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1a49d60bd22ef9ccb97619ba3441bbd89f4b0c3e
Cr-Commit-Position: refs/heads/master@{#436584}

Powered by Google App Engine
This is Rietveld 408576698