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

Issue 257773002: Use new people.get api instead of oauth2/v1/userinfo. (Closed)

Created:
6 years, 8 months ago by Roger Tawa OOO till Jul 10th
Modified:
6 years, 7 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Visibility:
Public.

Description

Use new people.get api instead of oauth2/v1/userinfo. Consolidate all uses into main helper class. Details about new api: https://developers.google.com/+/api/latest/people/get Format of returned response: https://developers.google.com/+/api/latest/people#resource BUG=320354 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267068 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267374

Patch Set 1 : Fix PD tests #

Total comments: 14

Patch Set 2 : address review comments #

Patch Set 3 : Fix sync tests #

Patch Set 4 : Fix local-disco tests #

Total comments: 1

Patch Set 5 : rebased #

Total comments: 1

Patch Set 6 : Fix user policy tests #

Patch Set 7 : rebased #

Patch Set 8 : rebased #

Patch Set 9 : Fix user image manager tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+290 lines, -216 lines) Patch
M chrome/browser/chromeos/login/user_image_manager_browsertest.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/wildcard_login_checker.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc View 1 2 3 4 5 4 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile_downloader.h View 5 chunks +11 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile_downloader.cc View 1 6 chunks +51 lines, -69 lines 0 comments Download
M chrome/browser/profiles/profile_downloader_unittest.cc View 1 2 chunks +21 lines, -26 lines 0 comments Download
M chrome/browser/signin/account_reconcilor_unittest.cc View 10 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_test.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_client_registration_helper.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M components/policy/core/common/cloud/user_info_fetcher.h View 3 chunks +20 lines, -7 lines 0 comments Download
M components/policy/core/common/cloud/user_info_fetcher.cc View 2 chunks +20 lines, -53 lines 0 comments Download
M components/policy/core/common/cloud/user_info_fetcher_unittest.cc View 4 chunks +7 lines, -4 lines 0 comments Download
M google_apis/gaia/gaia_constants.h View 2 chunks +4 lines, -0 lines 0 comments Download
M google_apis/gaia/gaia_constants.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M google_apis/gaia/gaia_oauth_client.h View 1 3 chunks +15 lines, -3 lines 0 comments Download
M google_apis/gaia/gaia_oauth_client.cc View 1 7 chunks +51 lines, -9 lines 0 comments Download
M google_apis/gaia/gaia_oauth_client_unittest.cc View 1 2 chunks +45 lines, -14 lines 0 comments Download
M google_apis/gaia/gaia_urls.h View 2 chunks +2 lines, -2 lines 0 comments Download
M google_apis/gaia/gaia_urls.cc View 3 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
Roger Tawa OOO till Jul 10th
Hi Drew, Hui, Monica, Drew: please look at components/policy Monica: please look at profile downloader ...
6 years, 8 months ago (2014-04-25 15:51:56 UTC) #1
Roger Tawa OOO till Jul 10th
Drew: please also look at the cros policy code in chrome/browser/chromeos/policy Thanks.
6 years, 8 months ago (2014-04-25 15:54:15 UTC) #2
noms (inactive)
https://codereview.chromium.org/257773002/diff/60001/chrome/browser/profiles/profile_downloader.cc File chrome/browser/profiles/profile_downloader.cc (left): https://codereview.chromium.org/257773002/diff/60001/chrome/browser/profiles/profile_downloader.cc#oldcode285 chrome/browser/profiles/profile_downloader.cc:285: base::StringPrintf(kAuthorizationHeader, auth_token_.c_str())); So here we check whether the token ...
6 years, 8 months ago (2014-04-25 17:07:40 UTC) #3
Andrew T Wilson (Slow)
LGTM with one comment which you can ignore if you like. https://codereview.chromium.org/257773002/diff/110001/components/policy/core/common/cloud/user_info_fetcher.h File components/policy/core/common/cloud/user_info_fetcher.h (right): ...
6 years, 8 months ago (2014-04-27 22:58:15 UTC) #4
Joao da Silva
https://codereview.chromium.org/257773002/diff/150001/components/policy/core/common/cloud/user_info_fetcher.cc File components/policy/core/common/cloud/user_info_fetcher.cc (left): https://codereview.chromium.org/257773002/diff/150001/components/policy/core/common/cloud/user_info_fetcher.cc#oldcode45 components/policy/core/common/cloud/user_info_fetcher.cc:45: 0, GaiaUrls::GetInstance()->oauth_user_info_url(), This is the problem: the original code ...
6 years, 7 months ago (2014-04-28 17:27:57 UTC) #5
Roger Tawa OOO till Jul 10th
Thanks Monica, Drew. Comments addressed, changes uploaded. Also fixed failing user policy unit tests. https://codereview.chromium.org/257773002/diff/60001/chrome/browser/profiles/profile_downloader.cc ...
6 years, 7 months ago (2014-04-28 20:44:12 UTC) #6
Roger Tawa OOO till Jul 10th
Hi Gene, Can you please do owner review for chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc? Thanks.
6 years, 7 months ago (2014-04-28 20:46:00 UTC) #7
noms (inactive)
profiles lgtm
6 years, 7 months ago (2014-04-28 20:46:52 UTC) #8
gene
lgtm for chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc
6 years, 7 months ago (2014-04-28 21:48:12 UTC) #9
Roger Tawa OOO till Jul 10th
The CQ bit was checked by rogerta@chromium.org
6 years, 7 months ago (2014-04-29 12:10:13 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rogerta@chromium.org/257773002/170001
6 years, 7 months ago (2014-04-29 12:10:16 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-29 12:12:10 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium
6 years, 7 months ago (2014-04-29 12:12:10 UTC) #13
guohui
lgtm
6 years, 7 months ago (2014-04-29 13:33:58 UTC) #14
Roger Tawa OOO till Jul 10th
The CQ bit was checked by rogerta@chromium.org
6 years, 7 months ago (2014-04-29 16:57:48 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rogerta@chromium.org/257773002/190001
6 years, 7 months ago (2014-04-29 16:58:51 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-29 22:53:30 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium
6 years, 7 months ago (2014-04-29 22:53:31 UTC) #18
Roger Tawa OOO till Jul 10th
The CQ bit was checked by rogerta@chromium.org
6 years, 7 months ago (2014-04-30 00:01:08 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rogerta@chromium.org/257773002/190001
6 years, 7 months ago (2014-04-30 00:04:24 UTC) #20
commit-bot: I haz the power
Change committed as 267068
6 years, 7 months ago (2014-04-30 04:51:57 UTC) #21
Michael Achenbach
A revert of this CL has been created in https://codereview.chromium.org/265563002/ by machenbach@chromium.org. The reason for ...
6 years, 7 months ago (2014-04-30 07:16:09 UTC) #22
Roger Tawa OOO till Jul 10th
Hi Michael, I don't believe my CL broke this test. If you look this trybot ...
6 years, 7 months ago (2014-04-30 13:40:44 UTC) #23
Michael Achenbach
I was just speculating. But with the revert the test stopped failing. You can see ...
6 years, 7 months ago (2014-04-30 18:12:49 UTC) #24
Roger Tawa OOO till Jul 10th
Thanks Michael. So I can confirm that CL does break this test for real (fix ...
6 years, 7 months ago (2014-04-30 19:41:46 UTC) #25
Roger Tawa OOO till Jul 10th
Hi Nikita, Can you do an owner review for chrome/browser/chromeos/login/user_image_manager_browsertest.cc ? Thanks.
6 years, 7 months ago (2014-04-30 19:54:01 UTC) #26
Nikita (slow)
On 2014/04/30 19:54:01, Roger Tawa wrote: > Hi Nikita, > > Can you do an ...
6 years, 7 months ago (2014-04-30 20:01:53 UTC) #27
Roger Tawa OOO till Jul 10th
The CQ bit was checked by rogerta@chromium.org
6 years, 7 months ago (2014-04-30 22:35:48 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rogerta@chromium.org/257773002/230001
6 years, 7 months ago (2014-04-30 22:36:11 UTC) #29
commit-bot: I haz the power
6 years, 7 months ago (2014-04-30 23:27:25 UTC) #30
Message was sent while issue was closed.
Change committed as 267374

Powered by Google App Engine
This is Rietveld 408576698