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

Issue 213823004: Calls FireRefreshTokenRevoked if an account is removed. (Closed)

Created:
6 years, 9 months ago by acleung1
Modified:
6 years, 6 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Calls FireRefreshTokenRevoked if an account is removed. We cannot reply on periodic reconcile actions to remove accounts from cookies. The reason is that we actually *don't* do it at that stage for Android. Instead, we are going to keep a list of accounts last seen by Chrome and store that in a shared pref. We will come to the old list to the new list and call FireRefreshTokenRevoked accordingingly. BUG=305086 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266108

Patch Set 1 #

Total comments: 11

Patch Set 2 : address comments #

Patch Set 3 : Address Issues + Use Shared Pref #

Patch Set 4 : Remove unused varible. #

Total comments: 1

Patch Set 5 : Change GetAccount to return the cache instead of system call. #

Patch Set 6 : Fix some issues. #

Total comments: 4

Patch Set 7 : Added Tests / Addressed Comments #

Patch Set 8 : Revert getAccounts to original behavior #

Total comments: 11

Patch Set 9 : #

Patch Set 10 : clean up #

Total comments: 8

Patch Set 11 : comments + tests #

Total comments: 16

Messages

Total messages: 25 (0 generated)
acleung1
6 years, 9 months ago (2014-03-27 00:27:37 UTC) #1
Roger Tawa OOO till Jul 10th
Thanks Alan. A few questions below. https://codereview.chromium.org/213823004/diff/1/chrome/browser/signin/android_profile_oauth2_token_service.cc File chrome/browser/signin/android_profile_oauth2_token_service.cc (right): https://codereview.chromium.org/213823004/diff/1/chrome/browser/signin/android_profile_oauth2_token_service.cc#newcode174 chrome/browser/signin/android_profile_oauth2_token_service.cc:174: const std::vector<std::string>& account_ids) ...
6 years, 9 months ago (2014-03-27 15:46:44 UTC) #2
acleung1
Can you please take another look, thanks! https://codereview.chromium.org/213823004/diff/1/chrome/browser/signin/android_profile_oauth2_token_service.cc File chrome/browser/signin/android_profile_oauth2_token_service.cc (right): https://codereview.chromium.org/213823004/diff/1/chrome/browser/signin/android_profile_oauth2_token_service.cc#newcode174 chrome/browser/signin/android_profile_oauth2_token_service.cc:174: const std::vector<std::string>& ...
6 years, 9 months ago (2014-03-27 21:09:53 UTC) #3
Roger Tawa OOO till Jul 10th
https://codereview.chromium.org/213823004/diff/1/chrome/browser/signin/android_profile_oauth2_token_service.cc File chrome/browser/signin/android_profile_oauth2_token_service.cc (right): https://codereview.chromium.org/213823004/diff/1/chrome/browser/signin/android_profile_oauth2_token_service.cc#newcode174 chrome/browser/signin/android_profile_oauth2_token_service.cc:174: const std::vector<std::string>& account_ids) { On 2014/03/27 21:09:54, acleung1 wrote: ...
6 years, 9 months ago (2014-03-28 13:21:59 UTC) #4
acleung1
On 2014/03/28 13:21:59, Roger Tawa wrote: > https://codereview.chromium.org/213823004/diff/1/chrome/browser/signin/android_profile_oauth2_token_service.cc > File chrome/browser/signin/android_profile_oauth2_token_service.cc (right): > > https://codereview.chromium.org/213823004/diff/1/chrome/browser/signin/android_profile_oauth2_token_service.cc#newcode174 ...
6 years, 8 months ago (2014-03-31 21:30:50 UTC) #5
Roger Tawa OOO till Jul 10th
This was sitting in pending list, forgot to send yesterday. https://codereview.chromium.org/213823004/diff/1/chrome/browser/signin/android_profile_oauth2_token_service.cc File chrome/browser/signin/android_profile_oauth2_token_service.cc (right): https://codereview.chromium.org/213823004/diff/1/chrome/browser/signin/android_profile_oauth2_token_service.cc#newcode174 ...
6 years, 8 months ago (2014-04-02 14:45:58 UTC) #6
Roger Tawa OOO till Jul 10th
On 2014/03/31 21:30:50, acleung1 wrote: > On 2014/03/28 13:21:59, Roger Tawa wrote: > > > ...
6 years, 8 months ago (2014-04-02 14:52:23 UTC) #7
Roger Tawa OOO till Jul 10th
https://codereview.chromium.org/213823004/diff/60001/chrome/browser/signin/android_profile_oauth2_token_service.cc File chrome/browser/signin/android_profile_oauth2_token_service.cc (right): https://codereview.chromium.org/213823004/diff/60001/chrome/browser/signin/android_profile_oauth2_token_service.cc#newcode208 chrome/browser/signin/android_profile_oauth2_token_service.cc:208: FireRefreshTokenRevoked(signed_in_account); Should also fire revoke for all last seen ...
6 years, 8 months ago (2014-04-02 14:57:52 UTC) #8
acleung1
Hi Roger, this is ready to go for another look. I added Tommy for chrome/android/java/src/org/chromium/chrome/browser/signin/OAuth2TokenService.java ...
6 years, 8 months ago (2014-04-08 02:01:02 UTC) #9
Roger Tawa OOO till Jul 10th
Thanks Alan. lgtm with some nits below. Can we also have a unit test for ...
6 years, 8 months ago (2014-04-08 20:40:52 UTC) #10
acleung1
https://codereview.chromium.org/213823004/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/signin/OAuth2TokenService.java File chrome/android/java/src/org/chromium/chrome/browser/signin/OAuth2TokenService.java (right): https://codereview.chromium.org/213823004/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/signin/OAuth2TokenService.java#newcode217 chrome/android/java/src/org/chromium/chrome/browser/signin/OAuth2TokenService.java:217: mNativeProfileOAuth2TokenService, prevAccounts, currentlySignedInAccount); On 2014/04/08 20:40:53, Roger Tawa wrote: ...
6 years, 8 months ago (2014-04-09 00:55:00 UTC) #11
Roger Tawa OOO till Jul 10th
Looking good Alan, but I think you undid a change from patchset #6 that should ...
6 years, 8 months ago (2014-04-10 15:30:53 UTC) #12
nyquist
Not trying to ignore you by the way... I mostly agree with Roger so far, ...
6 years, 8 months ago (2014-04-10 19:07:39 UTC) #13
acleung1
https://codereview.chromium.org/213823004/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/signin/OAuth2TokenService.java File chrome/android/java/src/org/chromium/chrome/browser/signin/OAuth2TokenService.java (right): https://codereview.chromium.org/213823004/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/signin/OAuth2TokenService.java#newcode97 chrome/android/java/src/org/chromium/chrome/browser/signin/OAuth2TokenService.java:97: public static String[] getSystemAccounts(Context context) { On 2014/04/10 19:07:40, ...
6 years, 8 months ago (2014-04-10 21:36:01 UTC) #14
Roger Tawa OOO till Jul 10th
Sorry for the delay Alan. See below for some comments. https://codereview.chromium.org/213823004/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/signin/OAuth2TokenService.java File chrome/android/java/src/org/chromium/chrome/browser/signin/OAuth2TokenService.java (right): https://codereview.chromium.org/213823004/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/signin/OAuth2TokenService.java#newcode108 ...
6 years, 8 months ago (2014-04-14 16:03:58 UTC) #15
acleung1
> GetAccounts() is a public api of OAuth2TokenService, so its behaviour needs to > be ...
6 years, 8 months ago (2014-04-16 20:58:27 UTC) #16
Roger Tawa OOO till Jul 10th
On 2014/04/16 20:58:27, acleung1 wrote: > > GetAccounts() is a public api of OAuth2TokenService, so ...
6 years, 8 months ago (2014-04-17 21:35:21 UTC) #17
acleung1
Ok. Please take another look. I am much more happy with this patch. > If ...
6 years, 8 months ago (2014-04-18 22:07:24 UTC) #18
Roger Tawa OOO till Jul 10th
Looks great Alan. Mostly nits, but one comment in android_profile_oauth2_token_service.cc, let me know what you ...
6 years, 8 months ago (2014-04-23 15:03:59 UTC) #19
acleung1
Thanks! There is already tests that cover most of those. I added a few more. ...
6 years, 8 months ago (2014-04-24 06:59:15 UTC) #20
Roger Tawa OOO till Jul 10th
lgtm Thanks Alan.
6 years, 8 months ago (2014-04-24 12:28:43 UTC) #21
acleung1
The CQ bit was checked by acleung@chromium.org
6 years, 8 months ago (2014-04-24 18:16:18 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/acleung@chromium.org/213823004/200001
6 years, 8 months ago (2014-04-24 21:52:53 UTC) #23
nyquist
https://codereview.chromium.org/213823004/diff/200001/chrome/android/java/src/org/chromium/chrome/browser/signin/OAuth2TokenService.java File chrome/android/java/src/org/chromium/chrome/browser/signin/OAuth2TokenService.java (right): https://codereview.chromium.org/213823004/diff/200001/chrome/android/java/src/org/chromium/chrome/browser/signin/OAuth2TokenService.java#newcode43 chrome/android/java/src/org/chromium/chrome/browser/signin/OAuth2TokenService.java:43: public static final String STORED_ACCOUNTS_KEY = "google.services.stored_accounts"; Nit: This ...
6 years, 8 months ago (2014-04-24 22:27:05 UTC) #24
commit-bot: I haz the power
6 years, 8 months ago (2014-04-25 03:09:07 UTC) #25
Message was sent while issue was closed.
Change committed as 266108

Powered by Google App Engine
This is Rietveld 408576698