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

Issue 875373002: First implementation of chrome.platformKeys. (Closed)

Created:
5 years, 11 months ago by pneubeck (no reviews)
Modified:
5 years, 9 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@cert_idl
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

First implementation of chrome.platformKeys. This change adds the selectClientCertificates() and subtleCrypto() functions and is missing the getKeyPair() function. It is also missing the certificate permissions per extension and any UI changes. BUG=450167 Committed: https://crrev.com/f813693baf707fd30d0e25eebaf0da6c08f74acc Cr-Commit-Position: refs/heads/master@{#314625}

Patch Set 1 : [Upload with upstream branch for running test bots] #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Fix PermissionMessage #

Patch Set 4 : Remove legacy_packaged_app. #

Patch Set 5 : Rebased. #

Patch Set 6 : Fix PermissionMessage, this time for real. #

Patch Set 7 : Remove apitest from non-ChromeOS build targets. #

Patch Set 8 : Adding OWNERS to api folder. #

Patch Set 9 : Rebased. #

Total comments: 6

Patch Set 10 : Addressed comments. #

Patch Set 11 : Rebased #

Patch Set 12 : Disallow permissionless certificate access. #

Patch Set 13 : Fix .gn file. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+774 lines, -2 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/platform_keys/platform_keys.h View 1 2 3 4 5 6 7 8 9 3 chunks +28 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/platform_keys/platform_keys.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/platform_keys/platform_keys_nss.cc View 6 chunks +108 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/platform_keys/platform_keys_service.h View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +41 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/platform_keys/platform_keys_service.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +30 lines, -0 lines 0 comments Download
A + chrome/browser/extensions/api/platform_keys/OWNERS View 1 2 3 4 5 6 7 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/browser/extensions/api/platform_keys/platform_keys_api.h View 2 chunks +21 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/platform_keys/platform_keys_api.cc View 2 chunks +54 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/platform_keys/platform_keys_apitest_nss.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +184 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_api_features.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/platform_keys_internal.idl View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/schemas.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_api_permissions.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -1 line 0 comments Download
M chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/platform_keys/internal_api.js View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/renderer/resources/extensions/platform_keys_custom_bindings.js View 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/renderer/resources/renderer_resources.grd View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/platform_keys/OWNERS View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/api_test/platform_keys/basic.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/api_test/platform_keys/basic.js View 1 chunk +234 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/platform_keys/manifest.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/permissions/api_permission.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/permissions/permission_message.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (15 generated)
pneubeck (no reviews)
@Ryan, FYI asvitkine@chromium.org: Please review the histogram change. extensions/browser/extension_function_histogram_value.h tools/metrics/histograms/histograms.xml arv@chromium.org: Please review the resource ...
5 years, 11 months ago (2015-01-27 15:50:53 UTC) #9
Alexei Svitkine (slow)
histograms lgtm
5 years, 11 months ago (2015-01-27 16:07:12 UTC) #10
not at google - send to devlin
Extensions infrastructure lgtm (pending discussion on other bug, but I don't expect that to change). ...
5 years, 11 months ago (2015-01-27 16:41:30 UTC) #11
pneubeck (no reviews)
@Eric, please take a look at the implementation in chrome/browser/chromeos/platform_keys/
5 years, 11 months ago (2015-01-28 09:29:52 UTC) #13
pneubeck (no reviews)
Alexei, ptal at the PermissionMessage change which I also had to add in histograms.xml.
5 years, 10 months ago (2015-01-28 10:37:36 UTC) #14
Alexei Svitkine (slow)
lgtm
5 years, 10 months ago (2015-01-28 16:11:34 UTC) #15
pneubeck (no reviews)
https://codereview.chromium.org/875373002/diff/140001/chrome/common/extensions/api/_permission_features.json File chrome/common/extensions/api/_permission_features.json (right): https://codereview.chromium.org/875373002/diff/140001/chrome/common/extensions/api/_permission_features.json#newcode797 chrome/common/extensions/api/_permission_features.json:797: "extension_types": ["extension", "legacy_packaged_app", "platform_app"] On 2015/01/27 16:41:30, kalman wrote: ...
5 years, 10 months ago (2015-01-29 10:37:08 UTC) #16
pneubeck (no reviews)
On 2015/01/27 16:41:30, kalman wrote: > Extensions infrastructure lgtm (pending discussion on other bug, but ...
5 years, 10 months ago (2015-01-29 13:47:48 UTC) #17
not at google - send to devlin
On 2015/01/29 13:47:48, pneubeck wrote: > On 2015/01/27 16:41:30, kalman wrote: > > Extensions infrastructure ...
5 years, 10 months ago (2015-01-29 16:50:05 UTC) #18
pneubeck (no reviews)
Bartosz, ptal at this CL secondly. The actual implementation is not fully reviewed yet but ...
5 years, 10 months ago (2015-02-02 10:10:04 UTC) #20
pneubeck (no reviews)
-Bartosz, +Thiemo
5 years, 10 months ago (2015-02-02 12:37:22 UTC) #22
Ryan Sleevi
LGTM. To confirm, this is whitelisted-only at present, right? Just making sure the permissions bit ...
5 years, 10 months ago (2015-02-02 22:42:15 UTC) #23
pneubeck (no reviews)
Ryan, thanks a lot for reviewing! On 2015/02/02 22:42:15, Ryan Sleevi wrote: > To confirm, ...
5 years, 10 months ago (2015-02-03 10:13:11 UTC) #24
pneubeck (no reviews)
https://codereview.chromium.org/875373002/diff/280001/chrome/browser/chromeos/platform_keys/platform_keys.h File chrome/browser/chromeos/platform_keys/platform_keys.h (right): https://codereview.chromium.org/875373002/diff/280001/chrome/browser/chromeos/platform_keys/platform_keys.h#newcode95 chrome/browser/chromeos/platform_keys/platform_keys.h:95: // contain the list of matching certificates (maybe empty) ...
5 years, 10 months ago (2015-02-03 10:13:58 UTC) #25
pneubeck (no reviews)
sky@chromium.org: ptal at chrome/test/BUILD.gn chrome/renderer/resources/renderer_resources.grd
5 years, 10 months ago (2015-02-04 15:36:47 UTC) #28
sky
LGTM
5 years, 10 months ago (2015-02-04 18:52:47 UTC) #30
pneubeck (no reviews)
@Ryan, please take a quick look at diff 13-11 which effectively disables selectClientCertificate() outside of ...
5 years, 10 months ago (2015-02-04 19:29:53 UTC) #31
Ryan Sleevi
Thanks, LG
5 years, 10 months ago (2015-02-04 19:36:12 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/875373002/380001
5 years, 10 months ago (2015-02-04 19:52:19 UTC) #34
commit-bot: I haz the power
Committed patchset #13 (id:380001)
5 years, 10 months ago (2015-02-04 20:44:22 UTC) #35
commit-bot: I haz the power
5 years, 10 months ago (2015-02-04 20:45:22 UTC) #36
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/f813693baf707fd30d0e25eebaf0da6c08f74acc
Cr-Commit-Position: refs/heads/master@{#314625}

Powered by Google App Engine
This is Rietveld 408576698