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

Issue 378643002: [GCM] Check-in with signed in accounts associates device to user (Closed)

Created:
6 years, 5 months ago by fgorski
Modified:
6 years, 5 months ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, zea+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Adding a step to the check-in process that ensures the correct account information is present before device check-in happen, in order to maintain a relationship between signed in accounts and the device. Behavior of the check-in is not symmetric: * Adding an account converges slowly - newly added account will be associated to device with next periodic check, to avoid checking in too often. * Removing account triggers check-in immediately to ensure users privacy. BUG=374969 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283693

Patch Set 1 #

Patch Set 2 : Storing the information about last checked in accounts. (for signed in vs. not signed in case) #

Patch Set 3 : Adding tests, fixing bugs. #

Patch Set 4 : fixing compilation issue on android #

Total comments: 18

Patch Set 5 : Updates based on CR and try bots #

Patch Set 6 : Version storing last checked in accounts #

Total comments: 14

Patch Set 7 : Addressing final feedback from Nicolas #

Patch Set 8 : Update to the code to prevent test crashes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+449 lines, -75 lines) Patch
M chrome/browser/services/gcm/gcm_account_tracker.h View 1 2 3 4 5 6 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/services/gcm/gcm_account_tracker.cc View 1 2 3 4 5 7 chunks +14 lines, -3 lines 0 comments Download
M chrome/browser/services/gcm/gcm_account_tracker_unittest.cc View 1 2 3 4 5 13 chunks +5 lines, -20 lines 0 comments Download
M chrome/browser/services/gcm/gcm_profile_service.cc View 1 2 3 4 5 6 7 8 chunks +49 lines, -5 lines 0 comments Download
M components/gcm_driver/fake_gcm_client.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M components/gcm_driver/fake_gcm_client.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M components/gcm_driver/gcm_client.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M components/gcm_driver/gcm_client_impl.h View 1 2 3 4 5 6 4 chunks +21 lines, -8 lines 0 comments Download
M components/gcm_driver/gcm_client_impl.cc View 1 2 3 4 5 6 9 chunks +82 lines, -4 lines 0 comments Download
M components/gcm_driver/gcm_client_impl_unittest.cc View 1 2 3 4 5 4 chunks +137 lines, -0 lines 0 comments Download
M components/gcm_driver/gcm_driver_desktop.h View 1 2 3 4 5 2 chunks +9 lines, -2 lines 0 comments Download
M components/gcm_driver/gcm_driver_desktop.cc View 1 2 3 4 5 3 chunks +22 lines, -0 lines 0 comments Download
M google_apis/gcm/engine/checkin_request.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M google_apis/gcm/engine/checkin_request.cc View 1 2 3 4 2 chunks +12 lines, -0 lines 0 comments Download
M google_apis/gcm/engine/checkin_request_unittest.cc View 1 3 chunks +13 lines, -5 lines 0 comments Download
M google_apis/gcm/engine/gcm_store.h View 1 2 3 4 5 3 chunks +4 lines, -1 line 0 comments Download
M google_apis/gcm/engine/gcm_store_impl.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M google_apis/gcm/engine/gcm_store_impl.cc View 1 2 3 4 5 9 chunks +50 lines, -17 lines 0 comments Download
M google_apis/gcm/engine/gcm_store_impl_unittest.cc View 1 2 3 4 5 3 chunks +7 lines, -2 lines 0 comments Download
M google_apis/gcm/tools/mcs_probe.cc View 1 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
fgorski
self review https://codereview.chromium.org/378643002/diff/60001/components/gcm_driver/gcm_client_impl.h File components/gcm_driver/gcm_client_impl.h (right): https://codereview.chromium.org/378643002/diff/60001/components/gcm_driver/gcm_client_impl.h#newcode133 components/gcm_driver/gcm_client_impl.h:133: // The check-in info for the user. ...
6 years, 5 months ago (2014-07-10 20:20:08 UTC) #1
fgorski
PTAL. This patch introduces sending OAuth2 tokens and email address of logged in accounts to ...
6 years, 5 months ago (2014-07-10 20:21:04 UTC) #2
Nicolas Zea
https://codereview.chromium.org/378643002/diff/60001/chrome/browser/services/gcm/gcm_account_tracker.cc File chrome/browser/services/gcm/gcm_account_tracker.cc (right): https://codereview.chromium.org/378643002/diff/60001/chrome/browser/services/gcm/gcm_account_tracker.cc#newcode16 chrome/browser/services/gcm/gcm_account_tracker.cc:16: const char kGCMGroupServerScope[] = "https://www.googleapis.com/auth/gcm"; Why is this changing? ...
6 years, 5 months ago (2014-07-10 20:57:33 UTC) #3
fgorski
PTAL. Nicolas, if you think it is ok to store a list of checked in ...
6 years, 5 months ago (2014-07-11 22:51:22 UTC) #4
Nicolas Zea
On 2014/07/11 22:51:22, fgorski wrote: > PTAL. > > > Nicolas, if you think it ...
6 years, 5 months ago (2014-07-11 22:55:07 UTC) #5
fgorski
PTAL. This one persists the account that were used by last checkin. Since I don't ...
6 years, 5 months ago (2014-07-15 17:46:37 UTC) #6
Nicolas Zea
LGTM with some nits and a couple comments https://codereview.chromium.org/378643002/diff/100001/chrome/browser/services/gcm/gcm_profile_service.cc File chrome/browser/services/gcm/gcm_profile_service.cc (right): https://codereview.chromium.org/378643002/diff/100001/chrome/browser/services/gcm/gcm_profile_service.cc#newcode39 chrome/browser/services/gcm/gcm_profile_service.cc:39: // ...
6 years, 5 months ago (2014-07-16 20:53:55 UTC) #7
fgorski
I ran tests with DCHECK instead of if in place you pointed out (account log ...
6 years, 5 months ago (2014-07-17 03:35:35 UTC) #8
fgorski
The CQ bit was checked by fgorski@chromium.org
6 years, 5 months ago (2014-07-17 03:35:42 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/378643002/140001
6 years, 5 months ago (2014-07-17 03:39:33 UTC) #10
commit-bot: I haz the power
6 years, 5 months ago (2014-07-17 07:36:02 UTC) #11
Message was sent while issue was closed.
Change committed as 283693

Powered by Google App Engine
This is Rietveld 408576698