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

Issue 2624653003: Provide correct guard for GCM connection tracking of login failures. (Closed)

Created:
3 years, 11 months ago by harkness
Modified:
3 years, 11 months 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

Provide correct guard for GCM connection tracking of login failures. The original implementation of GCM Connection tracking had a DCHECK in ConnectionLoginFailed to validate that ConnectionAttemptSucceeded had been called first to validate the expected ordering of the calls. That was removed as a result of crbug.com/673706 because it was failing. After investigating, the reason for the failures is that the entry check for calling ConnectionLoginFailed was checking the logging_in_ member on the ConnectionFactoryImpl. However, that member tracks whether the initial connection is established, not whether the login handshake has been completed. The correct check for when to call ConnectionLoginFailed is if the result passed to SignalConnectionReset is LOGIN_FAILURE, since that indicates that the MCSClient was unable to complete the login. BUG=673706 Review-Url: https://codereview.chromium.org/2624653003 Cr-Commit-Position: refs/heads/master@{#443531} Committed: https://chromium.googlesource.com/chromium/src/+/2d56c660fa73bbc7a8bb65839e473e326c7021d7

Patch Set 1 #

Patch Set 2 : Now with less debug logging! #

Patch Set 3 : Rename logging_in_ to handshake_in_progress_ to distinguish it from MCSClient login. #

Patch Set 4 : Comment cleanup #

Total comments: 5

Patch Set 5 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -16 lines) Patch
M google_apis/gcm/engine/connection_event_tracker.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M google_apis/gcm/engine/connection_factory_impl.h View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M google_apis/gcm/engine/connection_factory_impl.cc View 1 2 3 4 7 chunks +10 lines, -10 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
harkness
3 years, 11 months ago (2017-01-10 16:34:06 UTC) #2
Peter Beverloo
lgtm, but please consider renaming |logging_in_| to something more appropriate if it's about the handshake ...
3 years, 11 months ago (2017-01-11 13:46:41 UTC) #3
harkness
Updated. I renamed logging_in_ to handshake_in_progress_, which is wordier, but also seems to more accurately ...
3 years, 11 months ago (2017-01-12 10:26:30 UTC) #4
Nicolas Zea
lgtm https://codereview.chromium.org/2624653003/diff/60001/google_apis/gcm/engine/connection_factory_impl.cc File google_apis/gcm/engine/connection_factory_impl.cc (right): https://codereview.chromium.org/2624653003/diff/60001/google_apis/gcm/engine/connection_factory_impl.cc#newcode171 google_apis/gcm/engine/connection_factory_impl.cc:171: return "LOGGING IN"; On 2017/01/12 10:26:30, harkness wrote: ...
3 years, 11 months ago (2017-01-12 18:00:57 UTC) #5
harkness
https://codereview.chromium.org/2624653003/diff/60001/google_apis/gcm/engine/connection_factory_impl.cc File google_apis/gcm/engine/connection_factory_impl.cc (right): https://codereview.chromium.org/2624653003/diff/60001/google_apis/gcm/engine/connection_factory_impl.cc#newcode171 google_apis/gcm/engine/connection_factory_impl.cc:171: return "LOGGING IN"; On 2017/01/12 18:00:57, Nicolas Zea wrote: ...
3 years, 11 months ago (2017-01-13 08:28:08 UTC) #6
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/2624653003/80001
3 years, 11 months ago (2017-01-13 08:28:29 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/347847)
3 years, 11 months ago (2017-01-13 09:56:46 UTC) #11
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/2624653003/80001
3 years, 11 months ago (2017-01-13 10:36:58 UTC) #13
commit-bot: I haz the power
3 years, 11 months ago (2017-01-13 11:26:37 UTC) #16
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/2d56c660fa73bbc7a8bb65839e47...

Powered by Google App Engine
This is Rietveld 408576698