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

Issue 1306053013: White-listing Chrome Remote Desktop to use the identity API in Public Session (Closed)

Created:
5 years, 3 months ago by kelvinp
Modified:
5 years, 2 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

White-listing Chrome Remote Desktop to use the identity API in Public Session Chrome Remote Desktop currently uses Identity API to retrieve an OAuth token for authentication with the backend. By default, Identity API will return an empty token in a public session. This CL 1. Modifies the Identity API to return a token from the device robot account when the request comes from a white-listed first party app. 2. Adds Chrome Remote Desktop to the white-list in (1) 3. Adds Chrome Remote Desktop to list of allowed apps in the public session. BUG=508608 Committed: https://crrev.com/9a0f259cb27f78c3012d1b32bdf279e1c1609772 Cr-Commit-Position: refs/heads/master@{#351396}

Patch Set 1 : #

Total comments: 9

Patch Set 2 : Reviewer's feedback #

Patch Set 3 : Refactor if block + more tests #

Total comments: 2

Patch Set 4 : Return error on failure #

Total comments: 8

Patch Set 5 : Reviewer's feedback #

Patch Set 6 : Rebase #

Patch Set 7 : Fix compiler error on Windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -5 lines) Patch
M chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/identity/identity_api.h View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/identity/identity_api.cc View 1 2 3 4 4 chunks +42 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/identity/identity_apitest.cc View 1 2 3 4 5 6 3 chunks +91 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 45 (19 generated)
kelvinp
PTAL
5 years, 3 months ago (2015-09-17 18:13:12 UTC) #5
Andrew T Wilson (Slow)
https://codereview.chromium.org/1306053013/diff/60001/chrome/browser/extensions/api/identity/identity_api.h File chrome/browser/extensions/api/identity/identity_api.h (right): https://codereview.chromium.org/1306053013/diff/60001/chrome/browser/extensions/api/identity/identity_api.h#newcode270 chrome/browser/extensions/api/identity/identity_api.h:270: Two things: 1) This API should be private, not ...
5 years, 3 months ago (2015-09-18 07:13:30 UTC) #7
bartfab (slow)
https://codereview.chromium.org/1306053013/diff/60001/chrome/browser/extensions/api/identity/identity_api.cc File chrome/browser/extensions/api/identity/identity_api.cc (right): https://codereview.chromium.org/1306053013/diff/60001/chrome/browser/extensions/api/identity/identity_api.cc#newcode383 chrome/browser/extensions/api/identity/identity_api.cc:383: IsOriginWhitelistedInPublicSession()) && You should first check whether this is ...
5 years, 3 months ago (2015-09-18 12:24:57 UTC) #8
kelvinp
PTAL https://codereview.chromium.org/1306053013/diff/60001/chrome/browser/extensions/api/identity/identity_api.cc File chrome/browser/extensions/api/identity/identity_api.cc (right): https://codereview.chromium.org/1306053013/diff/60001/chrome/browser/extensions/api/identity/identity_api.cc#newcode383 chrome/browser/extensions/api/identity/identity_api.cc:383: IsOriginWhitelistedInPublicSession()) && On 2015/09/18 12:24:57, bartfab wrote: > ...
5 years, 3 months ago (2015-09-22 00:50:37 UTC) #9
Michael Courage
https://codereview.chromium.org/1306053013/diff/60001/chrome/browser/extensions/api/identity/identity_api.cc File chrome/browser/extensions/api/identity/identity_api.cc (right): https://codereview.chromium.org/1306053013/diff/60001/chrome/browser/extensions/api/identity/identity_api.cc#newcode383 chrome/browser/extensions/api/identity/identity_api.cc:383: IsOriginWhitelistedInPublicSession()) && On 2015/09/22 00:50:37, kelvinp wrote: > On ...
5 years, 3 months ago (2015-09-22 03:09:02 UTC) #10
bartfab (slow)
https://codereview.chromium.org/1306053013/diff/60001/chrome/browser/extensions/api/identity/identity_api.cc File chrome/browser/extensions/api/identity/identity_api.cc (right): https://codereview.chromium.org/1306053013/diff/60001/chrome/browser/extensions/api/identity/identity_api.cc#newcode383 chrome/browser/extensions/api/identity/identity_api.cc:383: IsOriginWhitelistedInPublicSession()) && On 2015/09/22 03:09:02, Michael Courage wrote: > ...
5 years, 3 months ago (2015-09-23 12:37:42 UTC) #11
kelvinp
FYI https://codereview.chromium.org/1306053013/diff/60001/chrome/browser/extensions/api/identity/identity_api.cc File chrome/browser/extensions/api/identity/identity_api.cc (right): https://codereview.chromium.org/1306053013/diff/60001/chrome/browser/extensions/api/identity/identity_api.cc#newcode383 chrome/browser/extensions/api/identity/identity_api.cc:383: IsOriginWhitelistedInPublicSession()) && On 2015/09/23 12:37:42, bartfab wrote: > ...
5 years, 3 months ago (2015-09-23 21:08:54 UTC) #12
kelvinp
ping
5 years, 2 months ago (2015-09-24 21:51:42 UTC) #13
Michael Courage
On 2015/09/24 21:51:42, kelvinp wrote: > ping For my part, I'd still like the conditionals ...
5 years, 2 months ago (2015-09-24 22:08:18 UTC) #14
kelvinp
Thank you for all the feedback. I have addressed all open comments. PTAL
5 years, 2 months ago (2015-09-25 01:05:42 UTC) #16
kelvinp
On 2015/09/25 01:05:42, kelvinp wrote: > Thank you for all the feedback. > I have ...
5 years, 2 months ago (2015-09-25 23:47:36 UTC) #17
Michael Courage
https://codereview.chromium.org/1306053013/diff/120001/chrome/browser/extensions/api/identity/identity_api.cc File chrome/browser/extensions/api/identity/identity_api.cc (right): https://codereview.chromium.org/1306053013/diff/120001/chrome/browser/extensions/api/identity/identity_api.cc#newcode518 chrome/browser/extensions/api/identity/identity_api.cc:518: return; What's the intended behavior here? Returning out here ...
5 years, 2 months ago (2015-09-25 23:49:04 UTC) #18
kelvinp
PTAL https://codereview.chromium.org/1306053013/diff/120001/chrome/browser/extensions/api/identity/identity_api.cc File chrome/browser/extensions/api/identity/identity_api.cc (right): https://codereview.chromium.org/1306053013/diff/120001/chrome/browser/extensions/api/identity/identity_api.cc#newcode518 chrome/browser/extensions/api/identity/identity_api.cc:518: return; On 2015/09/25 23:49:04, Michael Courage wrote: > ...
5 years, 2 months ago (2015-09-28 22:02:58 UTC) #19
Michael Courage
chrome/browser/extensions/api/identity lgtm
5 years, 2 months ago (2015-09-28 22:08:57 UTC) #20
kelvinp
Thank you Michael. bartfab and atwilson, can you take a second look as we are ...
5 years, 2 months ago (2015-09-28 22:13:06 UTC) #21
Andrew T Wilson (Slow)
LGTM with a few nits. Would also like clarification as to why we are whitelisting ...
5 years, 2 months ago (2015-09-29 13:20:30 UTC) #22
kelvinp
Thank you for the review. FYI https://codereview.chromium.org/1306053013/diff/140001/chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc File chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc (right): https://codereview.chromium.org/1306053013/diff/140001/chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc#newcode23 chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc:23: "cbkkbcmdlboombapidmoeolnmdacpkch", // Chrome ...
5 years, 2 months ago (2015-09-29 18:08:50 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1306053013/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1306053013/160001
5 years, 2 months ago (2015-09-29 18:10:58 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/75185) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 2 months ago (2015-09-29 18:14:25 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1306053013/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1306053013/180001
5 years, 2 months ago (2015-09-29 18:19:02 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/75190) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 2 months ago (2015-09-29 18:22:24 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1306053013/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1306053013/200001
5 years, 2 months ago (2015-09-29 19:02:32 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/120012) mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 2 months ago (2015-09-29 19:21:50 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1306053013/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1306053013/220001
5 years, 2 months ago (2015-09-29 20:17:57 UTC) #43
commit-bot: I haz the power
Committed patchset #7 (id:220001)
5 years, 2 months ago (2015-09-29 21:01:29 UTC) #44
commit-bot: I haz the power
5 years, 2 months ago (2015-09-29 21:03:03 UTC) #45
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/9a0f259cb27f78c3012d1b32bdf279e1c1609772
Cr-Commit-Position: refs/heads/master@{#351396}

Powered by Google App Engine
This is Rietveld 408576698