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

Issue 117513004: [GCM] Add TTL support (Closed)

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

Description

[GCM] Add TTL support TTL is currently enforced at Send time, resend time, and reconnect. It does not take into account clock changes. BUG=284553 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=242956

Patch Set 1 #

Patch Set 2 : Self review #

Total comments: 18

Patch Set 3 : Address comments #

Total comments: 8

Patch Set 4 : Address comments #

Total comments: 2

Patch Set 5 : Switch to DCHECK #

Patch Set 6 : Rename dropped_ids #

Patch Set 7 : fix probe tool #

Unified diffs Side-by-side diffs Delta from patch set Stats (+287 lines, -95 lines) Patch
M google_apis/gcm/base/mcs_util.h View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M google_apis/gcm/base/mcs_util.cc View 1 2 3 4 5 6 3 chunks +35 lines, -5 lines 0 comments Download
M google_apis/gcm/engine/mcs_client.h View 1 2 4 chunks +16 lines, -3 lines 0 comments Download
M google_apis/gcm/engine/mcs_client.cc View 1 2 3 4 5 6 14 chunks +91 lines, -32 lines 0 comments Download
M google_apis/gcm/engine/mcs_client_unittest.cc View 1 2 3 4 5 6 23 chunks +129 lines, -54 lines 0 comments Download
M google_apis/gcm/tools/mcs_probe.cc View 1 2 3 4 5 6 3 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
Nicolas Zea
PTAL. A follow up patch will make better use of the message sent callback, for ...
6 years, 12 months ago (2013-12-28 00:49:39 UTC) #1
fgorski
Hey a few comments, I'll take another look after New Years. https://codereview.chromium.org/117513004/diff/30001/google_apis/gcm/base/mcs_util.cc File google_apis/gcm/base/mcs_util.cc (right): ...
6 years, 12 months ago (2013-12-28 01:15:08 UTC) #2
Nicolas Zea
https://codereview.chromium.org/117513004/diff/30001/google_apis/gcm/base/mcs_util.cc File google_apis/gcm/base/mcs_util.cc (right): https://codereview.chromium.org/117513004/diff/30001/google_apis/gcm/base/mcs_util.cc#newcode214 google_apis/gcm/base/mcs_util.cc:214: return; On 2013/12/28 01:15:08, Filip Gorski wrote: > should ...
6 years, 11 months ago (2013-12-30 21:46:18 UTC) #3
fgorski
LGTM provided you agree with me on defaulting TTL to max, otherwise let's have a ...
6 years, 11 months ago (2014-01-02 18:09:26 UTC) #4
jianli
https://codereview.chromium.org/117513004/diff/110001/google_apis/gcm/base/mcs_util.h File google_apis/gcm/base/mcs_util.h (right): https://codereview.chromium.org/117513004/diff/110001/google_apis/gcm/base/mcs_util.h#newcode86 google_apis/gcm/base/mcs_util.h:86: GCM_EXPORT bool HasTTLExpired(const google::protobuf::MessageLite& protobuf, This function returns false ...
6 years, 11 months ago (2014-01-02 18:52:58 UTC) #5
Nicolas Zea
PTAL https://codereview.chromium.org/117513004/diff/30001/google_apis/gcm/base/mcs_util.cc File google_apis/gcm/base/mcs_util.cc (right): https://codereview.chromium.org/117513004/diff/30001/google_apis/gcm/base/mcs_util.cc#newcode255 google_apis/gcm/base/mcs_util.cc:255: return reinterpret_cast<const mcs_proto::DataMessageStanza*>(&protobuf)-> On 2014/01/02 18:09:27, Filip Gorski ...
6 years, 11 months ago (2014-01-02 21:39:07 UTC) #6
fgorski
The change might be going to far with TTL. https://codereview.chromium.org/117513004/diff/160001/google_apis/gcm/base/mcs_util.cc File google_apis/gcm/base/mcs_util.cc (right): https://codereview.chromium.org/117513004/diff/160001/google_apis/gcm/base/mcs_util.cc#newcode259 google_apis/gcm/base/mcs_util.cc:259: ...
6 years, 11 months ago (2014-01-02 21:47:34 UTC) #7
Nicolas Zea
https://codereview.chromium.org/117513004/diff/160001/google_apis/gcm/base/mcs_util.cc File google_apis/gcm/base/mcs_util.cc (right): https://codereview.chromium.org/117513004/diff/160001/google_apis/gcm/base/mcs_util.cc#newcode259 google_apis/gcm/base/mcs_util.cc:259: data_message->ttl() : kMaxTTLSeconds; On 2014/01/02 21:47:35, Filip Gorski wrote: ...
6 years, 11 months ago (2014-01-02 21:50:52 UTC) #8
jianli
https://codereview.chromium.org/117513004/diff/110001/google_apis/gcm/engine/mcs_client.cc File google_apis/gcm/engine/mcs_client.cc (right): https://codereview.chromium.org/117513004/diff/110001/google_apis/gcm/engine/mcs_client.cc#newcode322 google_apis/gcm/engine/mcs_client.cc:322: dropped_ids.push_back(packet->persistent_id); On 2014/01/02 21:39:08, Nicolas Zea wrote: > On ...
6 years, 11 months ago (2014-01-02 21:51:31 UTC) #9
Nicolas Zea
https://codereview.chromium.org/117513004/diff/110001/google_apis/gcm/engine/mcs_client.cc File google_apis/gcm/engine/mcs_client.cc (right): https://codereview.chromium.org/117513004/diff/110001/google_apis/gcm/engine/mcs_client.cc#newcode322 google_apis/gcm/engine/mcs_client.cc:322: dropped_ids.push_back(packet->persistent_id); On 2014/01/02 21:51:31, jianli wrote: > On 2014/01/02 ...
6 years, 11 months ago (2014-01-02 21:56:13 UTC) #10
jianli
On Thu, Jan 2, 2014 at 1:56 PM, <zea@chromium.org> wrote: > > https://codereview.chromium.org/117513004/diff/110001/ > google_apis/gcm/engine/mcs_client.cc ...
6 years, 11 months ago (2014-01-02 22:02:04 UTC) #11
Nicolas Zea
Done, PTAL
6 years, 11 months ago (2014-01-02 22:06:35 UTC) #12
jianli
lgtm
6 years, 11 months ago (2014-01-02 23:16:46 UTC) #13
fgorski
lgtm
6 years, 11 months ago (2014-01-02 23:42:55 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/117513004/200002
6 years, 11 months ago (2014-01-03 17:55:04 UTC) #15
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) chromedriver2_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=209671
6 years, 11 months ago (2014-01-03 18:41:15 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/117513004/630001
6 years, 11 months ago (2014-01-03 19:22:52 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/117513004/700001
6 years, 11 months ago (2014-01-03 19:29:22 UTC) #18
commit-bot: I haz the power
6 years, 11 months ago (2014-01-03 23:13:01 UTC) #19
Message was sent while issue was closed.
Change committed as 242956

Powered by Google App Engine
This is Rietveld 408576698