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

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

Issue 1938123002: Ensure that privates are private. (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/token.js
diff --git a/chrome/renderer/resources/extensions/enterprise_platform_keys/token.js b/chrome/renderer/resources/extensions/enterprise_platform_keys/token.js
index dee795211e62ac56c7d9dbfc28cad41842ca1344..266db59f5d59c48b0b82b2a5871a76b7ae43080d 100644
--- a/chrome/renderer/resources/extensions/enterprise_platform_keys/token.js
+++ b/chrome/renderer/resources/extensions/enterprise_platform_keys/token.js
@@ -15,5 +15,14 @@ var TokenImpl = function(id) {
this.subtleCrypto = new SubtleCrypto(id);
};
-exports.Token =
- utils.expose('Token', TokenImpl, {readonly:['id', 'subtleCrypto']});
+function Token() {
+ privates(Token).constructPrivate(this, arguments);
+}
+utils.expose(Token, TokenImpl, {
+ readonly: [
+ 'id',
+ 'subtleCrypto',
+ ],
+});
+
+exports.$set('Token', Token);

Powered by Google App Engine
This is Rietveld 408576698