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

Issue 1129463004: Let Ubertoken Fetch be primed with an access token. (Closed)

Created:
5 years, 7 months ago by Mike Lerman
Modified:
5 years, 7 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Let Ubertoken Fetch be primed with an access token. BUG=483596 TEST=Logging in with ChromeOS still results in the user logging into the content area. Committed: https://crrev.com/bf4915494a7ccd674dba94dd6d10cce161258cec Cr-Commit-Position: refs/heads/master@{#330752}

Patch Set 1 #

Patch Set 2 : unit tests needs the extra parameter too #

Patch Set 3 : ChromeOS sends access token to GCMS #

Total comments: 2

Patch Set 4 : TODO-- #

Total comments: 4

Patch Set 5 : rogerta's comments #

Total comments: 13

Patch Set 6 : split access token methods into new methods. #

Total comments: 6

Patch Set 7 : roger's nits and refactor AddAccountToCookie common code #

Patch Set 8 : Rebase #

Total comments: 2

Patch Set 9 : ChromeOS doesn't always have an access token #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -9 lines) Patch
M chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -4 lines 0 comments Download
M components/signin/core/browser/gaia_cookie_manager_service.h View 1 2 3 4 5 6 7 3 chunks +8 lines, -0 lines 0 comments Download
M components/signin/core/browser/gaia_cookie_manager_service.cc View 1 2 3 4 5 6 7 4 chunks +28 lines, -5 lines 0 comments Download
M google_apis/gaia/ubertoken_fetcher.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M google_apis/gaia/ubertoken_fetcher.cc View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (9 generated)
Mike Lerman
Hi reviewers, This CL helps ChromeOS use the existing Access Token for use with the ...
5 years, 7 months ago (2015-05-06 18:38:31 UTC) #2
xiyuan
LGTM Thank you for following up on this. https://codereview.chromium.org/1129463004/diff/40001/chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc File chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc (right): https://codereview.chromium.org/1129463004/diff/40001/chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc#newcode57 chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc:57: // ...
5 years, 7 months ago (2015-05-06 18:43:17 UTC) #3
Mike Lerman
Thanks Xiyuan. https://codereview.chromium.org/1129463004/diff/40001/chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc File chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc (right): https://codereview.chromium.org/1129463004/diff/40001/chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc#newcode57 chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc:57: // See http://crbug.com/483596 On 2015/05/06 18:43:16, xiyuan ...
5 years, 7 months ago (2015-05-06 19:24:02 UTC) #4
Dmitry Polukhin
lgtm
5 years, 7 months ago (2015-05-07 11:00:37 UTC) #5
Mike Lerman
Hi Drew, Can you help with a code review for components/signin while Roger's OOO? Thanks.
5 years, 7 months ago (2015-05-07 12:27:49 UTC) #7
Roger Tawa OOO till Jul 10th
https://codereview.chromium.org/1129463004/diff/60001/components/signin/core/browser/gaia_cookie_manager_service.cc File components/signin/core/browser/gaia_cookie_manager_service.cc (right): https://codereview.chromium.org/1129463004/diff/60001/components/signin/core/browser/gaia_cookie_manager_service.cc#newcode316 components/signin/core/browser/gaia_cookie_manager_service.cc:316: const std::string& account_id, const std::string& oauth2_token) { oauth2_token is ...
5 years, 7 months ago (2015-05-07 18:44:50 UTC) #8
Andrew T Wilson (Slow)
https://codereview.chromium.org/1129463004/diff/80001/components/signin/core/browser/gaia_cookie_manager_service.h File components/signin/core/browser/gaia_cookie_manager_service.h (right): https://codereview.chromium.org/1129463004/diff/80001/components/signin/core/browser/gaia_cookie_manager_service.h#newcode221 components/signin/core/browser/gaia_cookie_manager_service.h:221: virtual void StartFetchingUbertoken(const std::string& access_token); This seems like a ...
5 years, 7 months ago (2015-05-11 10:06:21 UTC) #9
xiyuan
https://codereview.chromium.org/1129463004/diff/80001/google_apis/gaia/ubertoken_fetcher.cc File google_apis/gaia/ubertoken_fetcher.cc (right): https://codereview.chromium.org/1129463004/diff/80001/google_apis/gaia/ubertoken_fetcher.cc#newcode50 google_apis/gaia/ubertoken_fetcher.cc:50: StartFetchingToken(account_id); Should we return here to let access token ...
5 years, 7 months ago (2015-05-11 16:11:58 UTC) #10
Roger Tawa OOO till Jul 10th
https://codereview.chromium.org/1129463004/diff/80001/components/signin/core/browser/gaia_cookie_manager_service.cc File components/signin/core/browser/gaia_cookie_manager_service.cc (right): https://codereview.chromium.org/1129463004/diff/80001/components/signin/core/browser/gaia_cookie_manager_service.cc#newcode328 components/signin/core/browser/gaia_cookie_manager_service.cc:328: } Nit: no need for { and } https://codereview.chromium.org/1129463004/diff/80001/components/signin/core/browser/gaia_cookie_manager_service_unittest.cc ...
5 years, 7 months ago (2015-05-11 16:56:16 UTC) #11
Andrew T Wilson (Slow)
https://codereview.chromium.org/1129463004/diff/80001/google_apis/gaia/ubertoken_fetcher.cc File google_apis/gaia/ubertoken_fetcher.cc (right): https://codereview.chromium.org/1129463004/diff/80001/google_apis/gaia/ubertoken_fetcher.cc#newcode49 google_apis/gaia/ubertoken_fetcher.cc:49: if (access_token.empty()) On 2015/05/11 16:56:16, Roger Tawa wrote: > ...
5 years, 7 months ago (2015-05-12 15:08:08 UTC) #12
Mike Lerman
Thanks, everyone. Split the methods that take an access token into new methods. https://codereview.chromium.org/1129463004/diff/60001/components/signin/core/browser/gaia_cookie_manager_service.cc File ...
5 years, 7 months ago (2015-05-12 20:51:45 UTC) #13
Mike Lerman
*gentle nudge to reviewers*
5 years, 7 months ago (2015-05-14 20:37:40 UTC) #14
Roger Tawa OOO till Jul 10th
Overall, I think it would be simpler to have one method called XXX() with an ...
5 years, 7 months ago (2015-05-14 20:51:35 UTC) #15
Mike Lerman
Hi Roger, comments incorporated. I did some splitting of the method calls. Also, since I ...
5 years, 7 months ago (2015-05-15 20:49:47 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1129463004/140001
5 years, 7 months ago (2015-05-19 19:13:10 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/58996)
5 years, 7 months ago (2015-05-19 20:10:05 UTC) #21
xiyuan
https://codereview.chromium.org/1129463004/diff/140001/chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc File chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc (right): https://codereview.chromium.org/1129463004/diff/140001/chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc#newcode56 chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc:56: access_token_); Sorry, missed this. |access_token_| could be empty. So ...
5 years, 7 months ago (2015-05-19 20:15:30 UTC) #22
Mike Lerman
How's that, Xiyuan? https://codereview.chromium.org/1129463004/diff/140001/chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc File chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc (right): https://codereview.chromium.org/1129463004/diff/140001/chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc#newcode56 chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc:56: access_token_); On 2015/05/19 20:15:30, xiyuan wrote: ...
5 years, 7 months ago (2015-05-20 15:33:07 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1129463004/160001
5 years, 7 months ago (2015-05-20 15:33:34 UTC) #26
xiyuan
On 2015/05/20 15:33:07, Mike Lerman wrote: > How's that, Xiyuan? > This code path is ...
5 years, 7 months ago (2015-05-20 15:47:59 UTC) #27
xiyuan
LGTM!
5 years, 7 months ago (2015-05-20 15:49:24 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-20 16:32:01 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1129463004/160001
5 years, 7 months ago (2015-05-20 16:43:32 UTC) #32
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 7 months ago (2015-05-20 16:47:59 UTC) #33
commit-bot: I haz the power
5 years, 7 months ago (2015-05-20 16:49:44 UTC) #34
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/bf4915494a7ccd674dba94dd6d10cce161258cec
Cr-Commit-Position: refs/heads/master@{#330752}

Powered by Google App Engine
This is Rietveld 408576698