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

Issue 336473003: [GCM] Suppress connection attempts when there is no valid connection. (Closed)

Created:
6 years, 6 months ago by Nicolas Zea
Modified:
6 years, 6 months ago
Reviewers:
fgorski
CC:
chromium-reviews
Project:
chromium
Visibility:
Public.

Description

[GCM] Suppress connection attempts when there is no valid connection. If the local machine's network is unavailable, there's no poin in attempting to make connections. This change simplifies the connection listening logic and drops connection attempts while it is known that the network is unavailable. BUG=376556 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278662

Patch Set 1 #

Patch Set 2 : Self review #

Total comments: 4

Patch Set 3 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -48 lines) Patch
M google_apis/gcm/engine/connection_factory_impl.h View 1 2 3 chunks +8 lines, -5 lines 0 comments Download
M google_apis/gcm/engine/connection_factory_impl.cc View 1 2 8 chunks +21 lines, -17 lines 0 comments Download
M google_apis/gcm/engine/connection_factory_impl_unittest.cc View 1 2 5 chunks +30 lines, -26 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Nicolas Zea
PTAL. I also suspect changing to the NetworkChangeObserver, rather than ip address change, will fix ...
6 years, 6 months ago (2014-06-19 18:48:07 UTC) #1
fgorski
lgtm https://codereview.chromium.org/336473003/diff/20001/google_apis/gcm/engine/connection_factory_impl.h File google_apis/gcm/engine/connection_factory_impl.h (right): https://codereview.chromium.org/336473003/diff/20001/google_apis/gcm/engine/connection_factory_impl.h#newcode153 google_apis/gcm/engine/connection_factory_impl.h:153: bool waiting_for_network_change_; nit: I understand that name comes ...
6 years, 6 months ago (2014-06-19 20:01:50 UTC) #2
Nicolas Zea
Comments addressed, committing. https://codereview.chromium.org/336473003/diff/20001/google_apis/gcm/engine/connection_factory_impl.h File google_apis/gcm/engine/connection_factory_impl.h (right): https://codereview.chromium.org/336473003/diff/20001/google_apis/gcm/engine/connection_factory_impl.h#newcode153 google_apis/gcm/engine/connection_factory_impl.h:153: bool waiting_for_network_change_; On 2014/06/19 20:01:49, fgorski ...
6 years, 6 months ago (2014-06-19 21:50:04 UTC) #3
Nicolas Zea
The CQ bit was checked by zea@chromium.org
6 years, 6 months ago (2014-06-19 21:50:06 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/336473003/40001
6 years, 6 months ago (2014-06-19 21:54:59 UTC) #5
commit-bot: I haz the power
6 years, 6 months ago (2014-06-20 10:20:04 UTC) #6
Message was sent while issue was closed.
Change committed as 278662

Powered by Google App Engine
This is Rietveld 408576698