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..8c2d9ccd7cb643fa146e253ea54d1b010db8933e 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. |
@@ -73,12 +73,14 @@ function equalsStandardPublicExponent(array) { |
/** |
* Implementation of WebCrypto.SubtleCrypto used in enterprise.platformKeys. |
* Derived from platformKeys.SubtleCrypto. |
+ * |
* @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); |
+} |
+$Object.setPrototypeOf(EnterpriseSubtleCryptoImpl, null); |
EnterpriseSubtleCryptoImpl.prototype = |
Object.create(SubtleCryptoImpl.prototype); |