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

Issue 1758573004: [GCM] Fixing the client interval interaction with heartbeat ack (Closed)

Created:
4 years, 9 months ago by fgorski
Modified:
4 years, 9 months ago
Reviewers:
Nicolas Zea, sjoe
CC:
chromium-reviews, Peter Beverloo, johnme+watch_chromium.org, zea+watch_chromium.org, sjoe
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[GCM] Fixing the client interval interaction with heartbeat ack This patch fixes the case, where heartbeat interval is lowered to 1 minute after a heartbeat is initiated by the gcm client. It also handles the case, where custom interval was set to a higher value, but because of no reconnection, we are keeping the lowest known value. (Caught by existing unit test). BUG=591490 R=zea@chromium.org Committed: https://crrev.com/a565abf9111511c13ebd0809656e12323956a4b2 Cr-Commit-Position: refs/heads/master@{#379095}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressing CR feedback #

Total comments: 6

Patch Set 3 : Addressing final feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -28 lines) Patch
M google_apis/gcm/engine/heartbeat_manager.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M google_apis/gcm/engine/heartbeat_manager.cc View 1 2 4 chunks +35 lines, -28 lines 0 comments Download
M google_apis/gcm/engine/heartbeat_manager_unittest.cc View 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
fgorski
Please take a look.
4 years, 9 months ago (2016-03-02 23:17:35 UTC) #2
sjoe
https://codereview.chromium.org/1758573004/diff/1/google_apis/gcm/engine/heartbeat_manager.cc File google_apis/gcm/engine/heartbeat_manager.cc (right): https://codereview.chromium.org/1758573004/diff/1/google_apis/gcm/engine/heartbeat_manager.cc#newcode192 google_apis/gcm/engine/heartbeat_manager.cc:192: // Not updating the value of heartbeat_interval_ms_ when waitign ...
4 years, 9 months ago (2016-03-02 23:46:08 UTC) #4
Nicolas Zea
https://codereview.chromium.org/1758573004/diff/1/google_apis/gcm/engine/heartbeat_manager.cc File google_apis/gcm/engine/heartbeat_manager.cc (right): https://codereview.chromium.org/1758573004/diff/1/google_apis/gcm/engine/heartbeat_manager.cc#newcode170 google_apis/gcm/engine/heartbeat_manager.cc:170: int interval_ms = std::numeric_limits<int>::max(); Why not initialize to heartbeat_interval_ms_? ...
4 years, 9 months ago (2016-03-03 00:19:44 UTC) #5
fgorski
Updated. PTAL https://codereview.chromium.org/1758573004/diff/1/google_apis/gcm/engine/heartbeat_manager.cc File google_apis/gcm/engine/heartbeat_manager.cc (right): https://codereview.chromium.org/1758573004/diff/1/google_apis/gcm/engine/heartbeat_manager.cc#newcode170 google_apis/gcm/engine/heartbeat_manager.cc:170: int interval_ms = std::numeric_limits<int>::max(); On 2016/03/03 00:19:43, ...
4 years, 9 months ago (2016-03-03 17:10:36 UTC) #6
Nicolas Zea
LGTM https://codereview.chromium.org/1758573004/diff/20001/google_apis/gcm/engine/heartbeat_manager.cc File google_apis/gcm/engine/heartbeat_manager.cc (right): https://codereview.chromium.org/1758573004/diff/20001/google_apis/gcm/engine/heartbeat_manager.cc#newcode7 google_apis/gcm/engine/heartbeat_manager.cc:7: #include <limits> nit: not needed anymore https://codereview.chromium.org/1758573004/diff/20001/google_apis/gcm/engine/heartbeat_manager.cc#newcode178 google_apis/gcm/engine/heartbeat_manager.cc:178: ...
4 years, 9 months ago (2016-03-03 19:09:41 UTC) #7
fgorski
All done. thanks for review. https://codereview.chromium.org/1758573004/diff/20001/google_apis/gcm/engine/heartbeat_manager.cc File google_apis/gcm/engine/heartbeat_manager.cc (right): https://codereview.chromium.org/1758573004/diff/20001/google_apis/gcm/engine/heartbeat_manager.cc#newcode7 google_apis/gcm/engine/heartbeat_manager.cc:7: #include <limits> On 2016/03/03 ...
4 years, 9 months ago (2016-03-03 20:31:32 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1758573004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1758573004/40001
4 years, 9 months ago (2016-03-03 20:32:40 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 9 months ago (2016-03-03 21:35:28 UTC) #13
commit-bot: I haz the power
4 years, 9 months ago (2016-03-03 21:36:36 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a565abf9111511c13ebd0809656e12323956a4b2
Cr-Commit-Position: refs/heads/master@{#379095}

Powered by Google App Engine
This is Rietveld 408576698