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 14a5388cef3ad8f189b8b05287e0b8da9c79f6c9..390400394539e665ca5a4e7f5b526711f09d1f20 100644 |
--- a/chrome/renderer/resources/extensions/platform_keys/subtle_crypto.js |
+++ b/chrome/renderer/resources/extensions/platform_keys/subtle_crypto.js |
@@ -110,10 +110,16 @@ SubtleCryptoImpl.prototype.exportKey = function(format, key) { |
}); |
}; |
-// Required for subclassing. |
-exports.SubtleCryptoImpl = SubtleCryptoImpl |
+function SubtleCrypto() { |
+ privates(SubtleCrypto).constructPrivate(this, arguments); |
+} |
+utils.expose(SubtleCrypto, SubtleCryptoImpl, { |
+ functions: [ |
+ 'sign', |
+ 'exportKey', |
+ ], |
+}); |
-exports.SubtleCrypto = |
- utils.expose('SubtleCrypto', |
- SubtleCryptoImpl, |
- {functions:['sign', 'exportKey']}); |
+// Required for subclassing. |
+exports.$set('SubtleCryptoImpl', SubtleCryptoImpl); |
+exports.$set('SubtleCrypto', SubtleCrypto); |