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

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

Issue 1915753002: Sanitize inheritance in callers of utils.expose (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit: space after ':' 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 266db59f5d59c48b0b82b2a5871a76b7ae43080d..5253808b23f7cbf2ec6b45ed50befbb9cb9c70ef 100644
--- a/chrome/renderer/resources/extensions/enterprise_platform_keys/token.js
+++ b/chrome/renderer/resources/extensions/enterprise_platform_keys/token.js
@@ -10,10 +10,11 @@ var SubtleCrypto = require('enterprise.platformKeys.SubtleCrypto').SubtleCrypto;
* @param {string} id The id of the new Token.
* @constructor
*/
-var TokenImpl = function(id) {
+function TokenImpl(id) {
this.id = id;
this.subtleCrypto = new SubtleCrypto(id);
-};
+}
+$Object.setPrototypeOf(TokenImpl.prototype, null);
function Token() {
privates(Token).constructPrivate(this, arguments);

Powered by Google App Engine
This is Rietveld 408576698