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

Unified Diff: chrome/renderer/resources/extensions/enterprise_platform_keys/subtle_crypto.js

Issue 1939833003: Sanitize inheritance in callers of utils.expose (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/resources/extensions/enterprise_platform_keys/subtle_crypto.js
diff --git a/chrome/renderer/resources/extensions/enterprise_platform_keys/subtle_crypto.js b/chrome/renderer/resources/extensions/enterprise_platform_keys/subtle_crypto.js
index c53bec335d50729143fb7d60fe6edfa5aafab132..52bca981fd9dd84a3c8d785b757bf2765485f219 100644
--- a/chrome/renderer/resources/extensions/enterprise_platform_keys/subtle_crypto.js
+++ b/chrome/renderer/resources/extensions/enterprise_platform_keys/subtle_crypto.js
@@ -16,7 +16,7 @@ var normalizeAlgorithm =
// This error is thrown by the internal and public API's token functions and
// must be rethrown by this custom binding. Keep this in sync with the C++ part
// of this API.
-var errorInvalidToken = "The token is not valid.";
+var errorInvalidToken = 'The token is not valid.';
// The following errors are specified in WebCrypto.
// TODO(pneubeck): These should be DOMExceptions.
@@ -76,12 +76,12 @@ function equalsStandardPublicExponent(array) {
* @param {string} tokenId The id of the backing Token.
* @constructor
*/
-var EnterpriseSubtleCryptoImpl = function(tokenId) {
- SubtleCryptoImpl.call(this, tokenId);
-};
+function EnterpriseSubtleCryptoImpl(tokenId) {
+ $Function.call(SubtleCryptoImpl, this, tokenId);
+}
EnterpriseSubtleCryptoImpl.prototype =
- Object.create(SubtleCryptoImpl.prototype);
+ $Object.create(SubtleCryptoImpl.prototype);
EnterpriseSubtleCryptoImpl.prototype.generateKey =
function(algorithm, extractable, keyUsages) {

Powered by Google App Engine
This is Rietveld 408576698