Index: chrome/renderer/resources/extensions/platform_keys/subtle_crypto.js |
diff --git a/chrome/renderer/resources/extensions/platform_keys/subtle_crypto.js b/chrome/renderer/resources/extensions/platform_keys/subtle_crypto.js |
index 390400394539e665ca5a4e7f5b526711f09d1f20..38273f30d82b568dec5726d5d68462f844dbe91b 100644 |
--- a/chrome/renderer/resources/extensions/platform_keys/subtle_crypto.js |
+++ b/chrome/renderer/resources/extensions/platform_keys/subtle_crypto.js |
@@ -14,7 +14,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. |
@@ -52,12 +52,15 @@ function catchInvalidTokenError(reject) { |
/** |
* Implementation of WebCrypto.SubtleCrypto used in platformKeys and |
* enterprise.platformKeys. |
+ * |
* @param {string} tokenId The id of the backing Token. |
* @constructor |
*/ |
-var SubtleCryptoImpl = function(tokenId) { |
+function SubtleCryptoImpl(tokenId) { |
this.tokenId = tokenId; |
-}; |
+} |
+$Object.setPrototypeOf(SubtleCryptoImpl, null); |
+$Object.setPrototypeOf(SubtleCryptoImpl.prototype, null); |
SubtleCryptoImpl.prototype.sign = function(algorithm, key, dataView) { |
var subtleCrypto = this; |