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

Issue 710513004: Adding GCM support to the copresence component. (Closed)

Created:
6 years, 1 month ago by Charlie
Modified:
6 years, 1 month ago
Reviewers:
rkc, fgorski
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, jianli
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Adding GCM support to the copresence component. The Copresence server can push directives (and messages, though they are not yet handled) over GCM. BUG=424253, 425681 Committed: https://crrev.com/19b4f6371c68fe1627c2b75ca5ec8a4061796e58 Cr-Commit-Position: refs/heads/master@{#303342}

Patch Set 1 #

Patch Set 2 : Adding a unit test #

Total comments: 15

Patch Set 3 : Review fixes #

Total comments: 16

Patch Set 4 : More review fixes #

Patch Set 5 : Removing CancelableCallback. Fixing empty device ID bug. #

Patch Set 6 : Fixing logging #

Patch Set 7 : Fixing gn build #

Patch Set 8 : Fixing the rest of the GN build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+570 lines, -75 lines) Patch
M chrome/browser/extensions/api/copresence/copresence_api.h View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/copresence/copresence_api.cc View 2 chunks +7 lines, -0 lines 0 comments Download
M components/components_tests.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/copresence.gypi View 1 3 chunks +11 lines, -0 lines 0 comments Download
M components/copresence/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M components/copresence/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M components/copresence/copresence_manager_impl.h View 2 chunks +6 lines, -4 lines 0 comments Download
M components/copresence/copresence_manager_impl.cc View 2 chunks +10 lines, -3 lines 0 comments Download
A components/copresence/handlers/gcm_handler.h View 1 2 3 4 1 chunk +78 lines, -0 lines 0 comments Download
A components/copresence/handlers/gcm_handler.cc View 1 2 3 4 1 chunk +155 lines, -0 lines 0 comments Download
A components/copresence/handlers/gcm_handler_unittest.cc View 1 1 chunk +71 lines, -0 lines 0 comments Download
M components/copresence/proto/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M components/copresence/proto/data.proto View 1 chunk +4 lines, -0 lines 0 comments Download
A components/copresence/proto/push_message.proto View 1 chunk +20 lines, -0 lines 0 comments Download
M components/copresence/public/copresence_delegate.h View 2 chunks +8 lines, -0 lines 0 comments Download
M components/copresence/rpc/rpc_handler.h View 5 chunks +10 lines, -2 lines 0 comments Download
M components/copresence/rpc/rpc_handler.cc View 1 2 3 4 5 12 chunks +91 lines, -26 lines 0 comments Download
M components/copresence/rpc/rpc_handler_unittest.cc View 1 5 chunks +8 lines, -40 lines 0 comments Download
A components/copresence/test/fake_directive_handler.h View 1 1 chunk +49 lines, -0 lines 0 comments Download
A components/copresence/test/fake_directive_handler.cc View 1 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (7 generated)
Charlie
Hey Rahul, Here's my current GCM code. Please take a look when you get a ...
6 years, 1 month ago (2014-11-07 02:31:44 UTC) #2
Charlie
Added a unit test. +fgorski for GCM review. We're hoping to get this in for ...
6 years, 1 month ago (2014-11-07 05:37:23 UTC) #4
Charlie
CC +jianli
6 years, 1 month ago (2014-11-07 05:37:57 UTC) #5
fgorski
Checked the GCM pieces. https://codereview.chromium.org/710513004/diff/20001/components/copresence/handlers/gcm_handler.cc File components/copresence/handlers/gcm_handler.cc (right): https://codereview.chromium.org/710513004/diff/20001/components/copresence/handlers/gcm_handler.cc#newcode37 components/copresence/handlers/gcm_handler.cc:37: const char GCMHandler::kCopresenceAppId[] = "copresence"; ...
6 years, 1 month ago (2014-11-07 17:40:44 UTC) #6
rkc
Mostly looks fine - I'll do another in depth pass after the next patch. https://codereview.chromium.org/710513004/diff/20001/components/copresence/handlers/gcm_handler.cc ...
6 years, 1 month ago (2014-11-07 18:39:06 UTC) #7
Charlie
https://codereview.chromium.org/710513004/diff/20001/components/copresence/handlers/gcm_handler.cc File components/copresence/handlers/gcm_handler.cc (right): https://codereview.chromium.org/710513004/diff/20001/components/copresence/handlers/gcm_handler.cc#newcode37 components/copresence/handlers/gcm_handler.cc:37: const char GCMHandler::kCopresenceAppId[] = "copresence"; On 2014/11/07 17:40:43, fgorski ...
6 years, 1 month ago (2014-11-07 19:42:30 UTC) #8
rkc
https://codereview.chromium.org/710513004/diff/40001/components/copresence/handlers/gcm_handler.cc File components/copresence/handlers/gcm_handler.cc (right): https://codereview.chromium.org/710513004/diff/40001/components/copresence/handlers/gcm_handler.cc#newcode64 components/copresence/handlers/gcm_handler.cc:64: registration_callback_.Cancel(); Looking at the cancelable callback code, I *think* ...
6 years, 1 month ago (2014-11-07 20:24:15 UTC) #9
Charlie
https://codereview.chromium.org/710513004/diff/40001/components/copresence/handlers/gcm_handler.cc File components/copresence/handlers/gcm_handler.cc (right): https://codereview.chromium.org/710513004/diff/40001/components/copresence/handlers/gcm_handler.cc#newcode64 components/copresence/handlers/gcm_handler.cc:64: registration_callback_.Cancel(); On 2014/11/07 20:24:15, Rahul Chaturvedi wrote: > Looking ...
6 years, 1 month ago (2014-11-07 20:50:13 UTC) #10
rkc
lgtm https://codereview.chromium.org/710513004/diff/40001/components/copresence/rpc/rpc_handler.cc File components/copresence/rpc/rpc_handler.cc (right): https://codereview.chromium.org/710513004/diff/40001/components/copresence/rpc/rpc_handler.cc#newcode181 components/copresence/rpc/rpc_handler.cc:181: // |gcm_handler_| is optional. On 2014/11/07 20:50:12, Charlie ...
6 years, 1 month ago (2014-11-07 21:05:11 UTC) #11
fgorski
gcm related code lgtm please work on tests as soon as you can.
6 years, 1 month ago (2014-11-07 22:28:12 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/710513004/100001
6 years, 1 month ago (2014-11-07 23:03:11 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/15577) linux_chromium_gn_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/32324)
6 years, 1 month ago (2014-11-07 23:09:08 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/710513004/120001
6 years, 1 month ago (2014-11-07 23:14:20 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/15586)
6 years, 1 month ago (2014-11-07 23:26:29 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/710513004/140001
6 years, 1 month ago (2014-11-07 23:30:16 UTC) #22
commit-bot: I haz the power
Committed patchset #8 (id:140001)
6 years, 1 month ago (2014-11-08 01:01:34 UTC) #23
commit-bot: I haz the power
6 years, 1 month ago (2014-11-08 01:02:18 UTC) #24
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/19b4f6371c68fe1627c2b75ca5ec8a4061796e58
Cr-Commit-Position: refs/heads/master@{#303342}

Powered by Google App Engine
This is Rietveld 408576698