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

Issue 298073009: Reuse WebCrypto's normalizeCryptoAlgorithm in enterprise.platformKeys. (Closed)

Created:
6 years, 7 months ago by pneubeck (no reviews)
Modified:
6 years, 6 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Reuse WebCrypto's normalizeCryptoAlgorithm in enterprise.platformKeys. The enterprise.platformKeys extension API implements a WebCrypto.SubtleCrypto and thus has to apply the normalization of algorithm parameters as required by the SubtleCrypto definition. To minimize redundancy in the extension API, this commit is a first step to reuse code of the WebCrypto implementation which lives partially in blink. A new ObjectBackedNativeHandler is added which allows to call the normalizeCryptoAlgorithm function exposed by blink from the API's custom binding in Javascript. Depends on these blink changes: https://codereview.chromium.org/295423004/ https://codereview.chromium.org/312393004/ BUG=364435 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=277542

Patch Set 1 #

Total comments: 14

Patch Set 2 : WebKit part updated. Use normalization for Sign... #

Patch Set 3 : Rebased #

Total comments: 16

Patch Set 4 : Reuse WebCrypto's algorithmIdToName #

Total comments: 2

Patch Set 5 : Addressed comment. #

Patch Set 6 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -16 lines) Patch
M chrome/chrome_renderer.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.cc View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
A chrome/renderer/extensions/enterprise_platform_keys_natives.h View 1 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/renderer/extensions/enterprise_platform_keys_natives.cc View 1 2 3 4 5 1 chunk +102 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/enterprise_platform_keys/subtle_crypto.js View 1 2 3 4 chunks +27 lines, -15 lines 0 comments Download
M chrome/test/data/extensions/api_test/enterprise_platform_keys.crx View 1 2 3 Binary file 0 comments Download
M chrome/test/data/extensions/api_test/enterprise_platform_keys/basic.js View 1 2 3 2 chunks +43 lines, -1 line 0 comments Download

Messages

Total messages: 21 (0 generated)
pneubeck (no reviews)
Eric, please also review this part (or hand over to Ryan) @Benjamin, Please check c/r/e/chrome_extensions_dispatcher_delegate.cc ...
6 years, 6 months ago (2014-05-29 13:04:30 UTC) #1
not at google - send to devlin
https://codereview.chromium.org/298073009/diff/1/chrome/renderer/extensions/enterprise_platform_keys_natives.cc File chrome/renderer/extensions/enterprise_platform_keys_natives.cc (right): https://codereview.chromium.org/298073009/diff/1/chrome/renderer/extensions/enterprise_platform_keys_natives.cc#newcode48 chrome/renderer/extensions/enterprise_platform_keys_natives.cc:48: default: if you leave out the default case it ...
6 years, 6 months ago (2014-05-29 15:06:57 UTC) #2
pneubeck (no reviews)
https://codereview.chromium.org/298073009/diff/1/chrome/renderer/extensions/enterprise_platform_keys_natives.cc File chrome/renderer/extensions/enterprise_platform_keys_natives.cc (right): https://codereview.chromium.org/298073009/diff/1/chrome/renderer/extensions/enterprise_platform_keys_natives.cc#newcode48 chrome/renderer/extensions/enterprise_platform_keys_natives.cc:48: default: On 2014/05/29 15:06:57, kalman wrote: > if you ...
6 years, 6 months ago (2014-06-02 14:01:55 UTC) #3
pneubeck (no reviews)
On 2014/06/02 14:01:55, pneubeck wrote: > https://codereview.chromium.org/298073009/diff/1/chrome/renderer/extensions/enterprise_platform_keys_natives.cc > File chrome/renderer/extensions/enterprise_platform_keys_natives.cc (right): > > https://codereview.chromium.org/298073009/diff/1/chrome/renderer/extensions/enterprise_platform_keys_natives.cc#newcode48 > ...
6 years, 6 months ago (2014-06-03 16:16:51 UTC) #4
pneubeck (no reviews)
@Ryan: Eric seems to be busy or OOO. Could you take a look instead? Thanks.
6 years, 6 months ago (2014-06-04 12:43:20 UTC) #5
Ryan Sleevi
Eric is best qualified to review this. I am not.
6 years, 6 months ago (2014-06-04 18:41:17 UTC) #6
eroman
(I had been waiting on the blink side before commenting more here) https://codereview.chromium.org/298073009/diff/60001/chrome/renderer/extensions/enterprise_platform_keys_natives.cc File chrome/renderer/extensions/enterprise_platform_keys_natives.cc ...
6 years, 6 months ago (2014-06-05 23:38:28 UTC) #7
pneubeck (no reviews)
-Ryan @Eric, ptal https://codereview.chromium.org/298073009/diff/60001/chrome/renderer/extensions/enterprise_platform_keys_natives.cc File chrome/renderer/extensions/enterprise_platform_keys_natives.cc (right): https://codereview.chromium.org/298073009/diff/60001/chrome/renderer/extensions/enterprise_platform_keys_natives.cc#newcode21 chrome/renderer/extensions/enterprise_platform_keys_natives.cc:21: std::string AlgorithmIdToName(blink::WebCryptoAlgorithmId id) { On 2014/06/05 ...
6 years, 6 months ago (2014-06-06 12:39:46 UTC) #8
pneubeck (no reviews)
oops, removed the wrong mail.
6 years, 6 months ago (2014-06-06 12:40:11 UTC) #9
eroman
lgtm
6 years, 6 months ago (2014-06-09 22:40:15 UTC) #10
pneubeck (no reviews)
The CQ bit was checked by pneubeck@chromium.org
6 years, 6 months ago (2014-06-10 08:24:23 UTC) #11
pneubeck (no reviews)
The CQ bit was unchecked by pneubeck@chromium.org
6 years, 6 months ago (2014-06-10 08:24:35 UTC) #12
pneubeck (no reviews)
@Kalman, friendly ping
6 years, 6 months ago (2014-06-10 08:27:06 UTC) #13
not at google - send to devlin
lgtm https://codereview.chromium.org/298073009/diff/80001/chrome/renderer/extensions/enterprise_platform_keys_natives.cc File chrome/renderer/extensions/enterprise_platform_keys_natives.cc (right): https://codereview.chromium.org/298073009/diff/80001/chrome/renderer/extensions/enterprise_platform_keys_natives.cc#newcode50 chrome/renderer/extensions/enterprise_platform_keys_natives.cc:50: return dict.Pass(); nit: looks like you return dict.Pass() ...
6 years, 6 months ago (2014-06-10 18:00:45 UTC) #14
pneubeck (no reviews)
https://codereview.chromium.org/298073009/diff/80001/chrome/renderer/extensions/enterprise_platform_keys_natives.cc File chrome/renderer/extensions/enterprise_platform_keys_natives.cc (right): https://codereview.chromium.org/298073009/diff/80001/chrome/renderer/extensions/enterprise_platform_keys_natives.cc#newcode50 chrome/renderer/extensions/enterprise_platform_keys_natives.cc:50: return dict.Pass(); On 2014/06/10 18:00:44, kalman wrote: > nit: ...
6 years, 6 months ago (2014-06-11 12:49:09 UTC) #15
pneubeck (no reviews)
The CQ bit was checked by pneubeck@chromium.org
6 years, 6 months ago (2014-06-11 12:49:40 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pneubeck@chromium.org/298073009/100001
6 years, 6 months ago (2014-06-11 12:52:55 UTC) #17
pneubeck (no reviews)
The CQ bit was unchecked by pneubeck@chromium.org
6 years, 6 months ago (2014-06-11 12:54:29 UTC) #18
pneubeck (no reviews)
The CQ bit was checked by pneubeck@chromium.org
6 years, 6 months ago (2014-06-16 17:56:54 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pneubeck@chromium.org/298073009/120001
6 years, 6 months ago (2014-06-16 17:59:33 UTC) #20
commit-bot: I haz the power
6 years, 6 months ago (2014-06-16 21:44:31 UTC) #21
Message was sent while issue was closed.
Change committed as 277542

Powered by Google App Engine
This is Rietveld 408576698