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

Issue 148293002: [GCM] Add basic collapse key support for upstream (Closed)

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

Description

[GCM] Add basic collapse key support for upstream Messages are collapsed based on app + token as long as they have not been sent over the wire yet. If messages are resent (because original send failed for some reason) no collapsing is done at this point in time. BUG=284553 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251135

Patch Set 1 #

Patch Set 2 : Collapse apps separately #

Patch Set 3 : fix #

Total comments: 17

Patch Set 4 : Address comments #

Total comments: 10

Patch Set 5 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+318 lines, -129 lines) Patch
M google_apis/gcm/engine/gcm_store.h View 1 chunk +3 lines, -0 lines 0 comments Download
M google_apis/gcm/engine/gcm_store_impl.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M google_apis/gcm/engine/gcm_store_impl.cc View 1 2 3 4 4 chunks +29 lines, -10 lines 0 comments Download
google_apis/gcm/engine/mcs_client.h View 1 2 3 4 3 chunks +8 lines, -0 lines 0 comments Download
google_apis/gcm/engine/mcs_client.cc View 1 2 3 4 8 chunks +107 lines, -20 lines 0 comments Download
google_apis/gcm/engine/mcs_client_unittest.cc View 1 2 3 4 19 chunks +167 lines, -99 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Nicolas Zea
PTAL
6 years, 10 months ago (2014-01-27 16:01:22 UTC) #1
fgorski
Only one concern: Is it safe to overwrite when the message is awaiting ack? https://codereview.chromium.org/148293002/diff/50001/google_apis/gcm/engine/gcm_store_impl.cc ...
6 years, 10 months ago (2014-01-27 17:39:37 UTC) #2
Nicolas Zea
https://codereview.chromium.org/148293002/diff/50001/google_apis/gcm/engine/gcm_store_impl.cc File google_apis/gcm/engine/gcm_store_impl.cc (right): https://codereview.chromium.org/148293002/diff/50001/google_apis/gcm/engine/gcm_store_impl.cc#newcode718 google_apis/gcm/engine/gcm_store_impl.cc:718: &message.GetProtobuf())->from(); On 2014/01/27 17:39:38, Filip Gorski wrote: > app_id ...
6 years, 10 months ago (2014-01-28 08:15:34 UTC) #3
fgorski
Clarification and more questions. https://codereview.chromium.org/148293002/diff/50001/google_apis/gcm/engine/gcm_store_impl.cc File google_apis/gcm/engine/gcm_store_impl.cc (right): https://codereview.chromium.org/148293002/diff/50001/google_apis/gcm/engine/gcm_store_impl.cc#newcode718 google_apis/gcm/engine/gcm_store_impl.cc:718: &message.GetProtobuf())->from(); On 2014/01/28 08:15:35, Nicolas ...
6 years, 10 months ago (2014-01-28 18:10:27 UTC) #4
fgorski
One more thing: multi-profile. https://codereview.chromium.org/148293002/diff/50001/google_apis/gcm/engine/mcs_client.h File google_apis/gcm/engine/mcs_client.h (right): https://codereview.chromium.org/148293002/diff/50001/google_apis/gcm/engine/mcs_client.h#newcode132 google_apis/gcm/engine/mcs_client.h:132: typedef std::string AppId; On 2014/01/28 ...
6 years, 10 months ago (2014-01-28 18:13:31 UTC) #5
Nicolas Zea
Comments addressed, PTAL https://codereview.chromium.org/148293002/diff/50001/google_apis/gcm/engine/gcm_store_impl.cc File google_apis/gcm/engine/gcm_store_impl.cc (right): https://codereview.chromium.org/148293002/diff/50001/google_apis/gcm/engine/gcm_store_impl.cc#newcode718 google_apis/gcm/engine/gcm_store_impl.cc:718: &message.GetProtobuf())->from(); On 2014/01/28 18:10:27, Filip Gorski ...
6 years, 10 months ago (2014-01-31 11:58:42 UTC) #6
fgorski
lgtm https://codereview.chromium.org/148293002/diff/130001/google_apis/gcm/engine/gcm_store_impl.cc File google_apis/gcm/engine/gcm_store_impl.cc (right): https://codereview.chromium.org/148293002/diff/130001/google_apis/gcm/engine/gcm_store_impl.cc#newcode722 google_apis/gcm/engine/gcm_store_impl.cc:722: // TODO(zea); consider verifying the specific message already ...
6 years, 10 months ago (2014-02-04 22:22:35 UTC) #7
jianli
https://codereview.chromium.org/148293002/diff/130001/google_apis/gcm/engine/mcs_client.cc File google_apis/gcm/engine/mcs_client.cc (right): https://codereview.chromium.org/148293002/diff/130001/google_apis/gcm/engine/mcs_client.cc#newcode98 google_apis/gcm/engine/mcs_client.cc:98: bool CollapseKey::operator<(const CollapseKey& right) const { nit: empty line ...
6 years, 10 months ago (2014-02-04 22:55:12 UTC) #8
Nicolas Zea
Comments addressed, PTAL https://codereview.chromium.org/148293002/diff/130001/google_apis/gcm/engine/gcm_store_impl.cc File google_apis/gcm/engine/gcm_store_impl.cc (right): https://codereview.chromium.org/148293002/diff/130001/google_apis/gcm/engine/gcm_store_impl.cc#newcode722 google_apis/gcm/engine/gcm_store_impl.cc:722: // TODO(zea); consider verifying the specific ...
6 years, 10 months ago (2014-02-12 23:35:44 UTC) #9
jianli
lgtm
6 years, 10 months ago (2014-02-13 00:01:17 UTC) #10
Nicolas Zea
The CQ bit was checked by zea@chromium.org
6 years, 10 months ago (2014-02-13 18:04:01 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/148293002/240001
6 years, 10 months ago (2014-02-13 18:06:26 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/148293002/240001
6 years, 10 months ago (2014-02-13 19:55:14 UTC) #13
commit-bot: I haz the power
6 years, 10 months ago (2014-02-13 21:42:36 UTC) #14
Message was sent while issue was closed.
Change committed as 251135

Powered by Google App Engine
This is Rietveld 408576698