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

Issue 183923006: [GCM] API update to allow only a single sender in registration (Closed)

Created:
6 years, 9 months ago by fgorski
Modified:
6 years, 9 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

CLOSING the issue. We decided to stick with multiple senders. This CL might come in handy once and if GCM moves toward a registration ID per sender. Given that that decision has not been made, we are not taking this change. [GCM] API update to allow only a single sender in registration In anticipation of the coming changes and in the interest of not deprecating the API shortly after it is removed we reduce the number of senders the applicaiton is allowed to register for to 1. The registrationID is going to be valid for a single sender only. Relevant updates are propagated everywhere through the code and the tests are updated in the change as well. In anticipation of allowing multiple senders that do not share registration id, reading and writing the registration ids and senders is updated as well. BUG=316683

Patch Set 1 #

Total comments: 24

Patch Set 2 : Updates based on CR. Changing how the senders/reg_ids are stored to avoid upgrade to multiple sedne… #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -317 lines) Patch
M chrome/browser/extensions/api/gcm/gcm_api.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/gcm/gcm_apitest.cc View 1 1 chunk +1 line, -6 lines 0 comments Download
M chrome/browser/invalidation/gcm_network_channel_delegate_impl.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/services/gcm/fake_gcm_profile_service.h View 4 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/services/gcm/fake_gcm_profile_service.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/services/gcm/gcm_client_mock.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/services/gcm/gcm_client_mock.cc View 1 2 chunks +9 lines, -20 lines 0 comments Download
M chrome/browser/services/gcm/gcm_profile_service.h View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/services/gcm/gcm_profile_service.cc View 1 11 chunks +25 lines, -40 lines 1 comment Download
M chrome/browser/services/gcm/gcm_profile_service_unittest.cc View 1 18 chunks +43 lines, -92 lines 0 comments Download
M chrome/common/extensions/api/gcm.json View 1 1 chunk +7 lines, -12 lines 0 comments Download
M chrome/test/data/extensions/api_test/gcm/functions/incognito/test.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/gcm/functions/register/register.js View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/test/data/extensions/api_test/gcm/functions/register_validation/register_validation.js View 2 chunks +10 lines, -43 lines 0 comments Download
M chrome/test/data/extensions/api_test/gcm/functions/register_without_key/register.js View 1 chunk +1 line, -2 lines 0 comments Download
M google_apis/gcm/engine/registration_request.h View 1 3 chunks +3 lines, -6 lines 0 comments Download
M google_apis/gcm/engine/registration_request.cc View 1 4 chunks +4 lines, -19 lines 0 comments Download
M google_apis/gcm/engine/registration_request_unittest.cc View 1 13 chunks +14 lines, -44 lines 0 comments Download
M google_apis/gcm/gcm_client.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M google_apis/gcm/gcm_client_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M google_apis/gcm/gcm_client_impl.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M google_apis/gcm/gcm_client_impl_unittest.cc View 1 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
fgorski
PTAL: tim (if zea is out) or zea: gcm/ tim: invalidations/ jian: services/gcm + tests ...
6 years, 9 months ago (2014-02-28 18:50:25 UTC) #1
not at google - send to devlin
json file lgtm https://codereview.chromium.org/183923006/diff/1/chrome/common/extensions/api/gcm.json File chrome/common/extensions/api/gcm.json (right): https://codereview.chromium.org/183923006/diff/1/chrome/common/extensions/api/gcm.json#newcode19 chrome/common/extensions/api/gcm.json:19: "description": "Registers the application with GCM. ...
6 years, 9 months ago (2014-02-28 22:36:48 UTC) #2
jianli
https://codereview.chromium.org/183923006/diff/1/chrome/browser/extensions/api/gcm/gcm_api.cc File chrome/browser/extensions/api/gcm/gcm_api.cc (right): https://codereview.chromium.org/183923006/diff/1/chrome/browser/extensions/api/gcm/gcm_api.cc#newcode132 chrome/browser/extensions/api/gcm/gcm_api.cc:132: params->sender_id, Do we want to validate if the sender ...
6 years, 9 months ago (2014-03-03 21:29:30 UTC) #3
fgorski
Jian, Tim, PTAL https://codereview.chromium.org/183923006/diff/1/chrome/browser/extensions/api/gcm/gcm_api.cc File chrome/browser/extensions/api/gcm/gcm_api.cc (right): https://codereview.chromium.org/183923006/diff/1/chrome/browser/extensions/api/gcm/gcm_api.cc#newcode132 chrome/browser/extensions/api/gcm/gcm_api.cc:132: params->sender_id, On 2014/03/03 21:29:31, jianli wrote: ...
6 years, 9 months ago (2014-03-03 23:14:16 UTC) #4
fgorski
rlarocque@chromium.org: Please review changes in invalidations dimich@chromium.org: Please review changes in google_apis/gcm Adding alternative reviewers ...
6 years, 9 months ago (2014-03-04 00:42:10 UTC) #5
Dmitry Titov
> dimich@chromium.org: Please review changes in google_apis/gcm LGTM. gcm/ changes are pretty mechanical here.
6 years, 9 months ago (2014-03-04 00:51:21 UTC) #6
jianli
6 years, 9 months ago (2014-03-04 01:13:53 UTC) #7
lgtm

https://codereview.chromium.org/183923006/diff/10001/chrome/browser/services/...
File chrome/browser/services/gcm/gcm_profile_service.cc (right):

https://codereview.chromium.org/183923006/diff/10001/chrome/browser/services/...
chrome/browser/services/gcm/gcm_profile_service.cc:1053: // TODO(fgorski):
Switch the return statements when multiple sendres are
Probably you only need to add one TODO comment at line 1042:
  // TODO(...): Add multi-sender reading support.

Powered by Google App Engine
This is Rietveld 408576698