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

Issue 171513004: [GCM] Adding a list of accounts present on the client to checkin request (Closed)

Created:
6 years, 10 months ago by fgorski
Modified:
6 years, 10 months ago
Reviewers:
Nicolas Zea, jianli
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[GCM] Adding a list of accounts present on the client to checkin request We need to bind device id (profile specific) to accounts running in that profile. For that reason we are grabbing all of the accounts as tracked by the ProfileOAuth2TokenService and pass them to Initialize method of GCMClientImpl. The list of accounts is then passed to CheckinRequest when the request is happening. Once the CheckinRequest is done more often than simply on login, we may want to give a more updated list of accounts than the one present on startup of Chromium. For now there is no reason to handle that case. BUG=343203 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252759

Patch Set 1 #

Total comments: 6

Patch Set 2 : Updates based on CR, updating formatting #

Patch Set 3 : Adding documentation of the parameter of GCMClient.Initialize(...account_ids...) #

Total comments: 2

Patch Set 4 : adding const keyword to checkin request fields #

Patch Set 5 : Fixing compilation issue with GCMClientMock #

Patch Set 6 : Fix to android test issue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -19 lines) Patch
M chrome/browser/services/gcm/gcm_client_mock.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/services/gcm/gcm_client_mock.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/services/gcm/gcm_profile_service.cc View 1 2 3 4 5 7 chunks +20 lines, -5 lines 0 comments Download
M google_apis/gcm/engine/checkin_request.h View 1 2 3 3 chunks +8 lines, -3 lines 0 comments Download
M google_apis/gcm/engine/checkin_request.cc View 1 3 chunks +8 lines, -0 lines 0 comments Download
M google_apis/gcm/engine/checkin_request_unittest.cc View 1 5 chunks +10 lines, -3 lines 0 comments Download
M google_apis/gcm/gcm_client.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M google_apis/gcm/gcm_client_impl.h View 2 chunks +2 lines, -0 lines 0 comments Download
M google_apis/gcm/gcm_client_impl.cc View 1 2 3 4 3 chunks +10 lines, -8 lines 0 comments Download
M google_apis/gcm/gcm_client_impl_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M google_apis/gcm/tools/mcs_probe.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
fgorski
PTAL
6 years, 10 months ago (2014-02-19 00:43:19 UTC) #1
jianli
https://codereview.chromium.org/171513004/diff/1/chrome/browser/services/gcm/gcm_profile_service.cc File chrome/browser/services/gcm/gcm_profile_service.cc (right): https://codereview.chromium.org/171513004/diff/1/chrome/browser/services/gcm/gcm_profile_service.cc#newcode726 chrome/browser/services/gcm/gcm_profile_service.cc:726: // Get the list of avialable accounts. nit: typo ...
6 years, 10 months ago (2014-02-19 01:18:11 UTC) #2
fgorski
Fixed. https://codereview.chromium.org/171513004/diff/1/chrome/browser/services/gcm/gcm_profile_service.cc File chrome/browser/services/gcm/gcm_profile_service.cc (right): https://codereview.chromium.org/171513004/diff/1/chrome/browser/services/gcm/gcm_profile_service.cc#newcode726 chrome/browser/services/gcm/gcm_profile_service.cc:726: // Get the list of avialable accounts. On ...
6 years, 10 months ago (2014-02-19 19:00:24 UTC) #3
jianli
lgtm Please also fix a typo in the description: "more often then"
6 years, 10 months ago (2014-02-19 19:09:53 UTC) #4
Nicolas Zea
Mostly LG, with a couple questions: - Do we care about all account ids? Why ...
6 years, 10 months ago (2014-02-19 22:23:36 UTC) #5
fgorski
Added const keywords. On 2014/02/19 22:23:36, Nicolas Zea wrote: > Mostly LG, with a couple ...
6 years, 10 months ago (2014-02-19 23:08:22 UTC) #6
fgorski
https://codereview.chromium.org/171513004/diff/230001/google_apis/gcm/engine/checkin_request.h File google_apis/gcm/engine/checkin_request.h (right): https://codereview.chromium.org/171513004/diff/230001/google_apis/gcm/engine/checkin_request.h#newcode63 google_apis/gcm/engine/checkin_request.h:63: std::vector<std::string> account_ids_; On 2014/02/19 22:23:36, Nicolas Zea wrote: > ...
6 years, 10 months ago (2014-02-19 23:08:49 UTC) #7
Nicolas Zea
lgtm
6 years, 10 months ago (2014-02-19 23:50:50 UTC) #8
fgorski
The CQ bit was checked by fgorski@chromium.org
6 years, 10 months ago (2014-02-20 00:43:00 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fgorski@chromium.org/171513004/250001
6 years, 10 months ago (2014-02-20 01:46:29 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fgorski@chromium.org/171513004/250001
6 years, 10 months ago (2014-02-20 05:16:49 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fgorski@chromium.org/171513004/250001
6 years, 10 months ago (2014-02-20 09:16:23 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fgorski@chromium.org/171513004/250001
6 years, 10 months ago (2014-02-20 12:33:10 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-20 12:51:16 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel, mac_chromium_rel
6 years, 10 months ago (2014-02-20 12:51:17 UTC) #15
fgorski
The CQ bit was checked by fgorski@chromium.org
6 years, 10 months ago (2014-02-20 18:48:09 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fgorski@chromium.org/171513004/840001
6 years, 10 months ago (2014-02-20 18:50:48 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-21 02:44:59 UTC) #18
commit-bot: I haz the power
Retried try job too often on android_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_dbg&number=152689
6 years, 10 months ago (2014-02-21 02:44:59 UTC) #19
fgorski
The CQ bit was checked by fgorski@chromium.org
6 years, 10 months ago (2014-02-21 18:33:45 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fgorski@chromium.org/171513004/840001
6 years, 10 months ago (2014-02-21 18:33:51 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fgorski@chromium.org/171513004/840001
6 years, 10 months ago (2014-02-21 19:12:40 UTC) #22
fgorski
The CQ bit was checked by fgorski@chromium.org
6 years, 10 months ago (2014-02-21 22:02:16 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fgorski@chromium.org/171513004/1460001
6 years, 10 months ago (2014-02-21 22:04:00 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-22 00:00:35 UTC) #25
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=268203
6 years, 10 months ago (2014-02-22 00:00:36 UTC) #26
fgorski
The CQ bit was checked by fgorski@chromium.org
6 years, 10 months ago (2014-02-22 03:20:14 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fgorski@chromium.org/171513004/1460001
6 years, 10 months ago (2014-02-22 03:20:39 UTC) #28
commit-bot: I haz the power
6 years, 10 months ago (2014-02-22 07:50:06 UTC) #29
Message was sent while issue was closed.
Change committed as 252759

Powered by Google App Engine
This is Rietveld 408576698