| Index: chrome/browser/resources/cryptotoken/signer.js
|
| diff --git a/chrome/browser/resources/cryptotoken/signer.js b/chrome/browser/resources/cryptotoken/signer.js
|
| index 9397670d20f29970f034895919e7ee5ae2e4323d..df91d3944d5d935dad768cb106b3949468d7a5fc 100644
|
| --- a/chrome/browser/resources/cryptotoken/signer.js
|
| +++ b/chrome/browser/resources/cryptotoken/signer.js
|
| @@ -223,7 +223,7 @@ function isValidSignRequest(request, signChallengesName) {
|
|
|
| /**
|
| * Adapter class representing a queued sign request.
|
| - * @param {!Array.<SignChallenge>} signChallenges The sign challenges.
|
| + * @param {!Array<SignChallenge>} signChallenges The sign challenges.
|
| * @param {Countdown} timer Timeout timer
|
| * @param {WebRequestSender} sender Message sender.
|
| * @param {function(U2fError)} errorCb Error callback
|
| @@ -237,7 +237,7 @@ function isValidSignRequest(request, signChallengesName) {
|
| */
|
| function QueuedSignRequest(signChallenges, timer, sender, errorCb,
|
| successCb, opt_defaultChallenge, opt_appId, opt_logMsgUrl) {
|
| - /** @private {!Array.<SignChallenge>} */
|
| + /** @private {!Array<SignChallenge>} */
|
| this.signChallenges_ = signChallenges;
|
| /** @private {Countdown} */
|
| this.timer_ = timer.clone(this.close.bind(this));
|
| @@ -361,9 +361,9 @@ function Signer(timer, sender, errorCb, successCb, opt_logMsgUrl) {
|
| /** @private {boolean} */
|
| this.done_ = false;
|
|
|
| - /** @private {Object.<string, string>} */
|
| + /** @private {Object<string, string>} */
|
| this.browserData_ = {};
|
| - /** @private {Object.<string, SignChallenge>} */
|
| + /** @private {Object<string, SignChallenge>} */
|
| this.serverChallenges_ = {};
|
| // Allow http appIds for http origins. (Broken, but the caller deserves
|
| // what they get.)
|
| @@ -376,7 +376,7 @@ function Signer(timer, sender, errorCb, successCb, opt_logMsgUrl) {
|
|
|
| /**
|
| * Sets the challenges to be signed.
|
| - * @param {Array.<SignChallenge>} signChallenges The challenges to set.
|
| + * @param {Array<SignChallenge>} signChallenges The challenges to set.
|
| * @param {string=} opt_defaultChallenge A default sign challenge
|
| * value, if a request does not provide one.
|
| * @param {string=} opt_appId The app id for the entire request.
|
| @@ -390,7 +390,7 @@ Signer.prototype.setChallenges = function(signChallenges, opt_defaultChallenge,
|
| this.notifyError_({errorCode: ErrorCodes.TIMEOUT});
|
| return true;
|
| }
|
| - /** @private {Array.<SignChallenge>} */
|
| + /** @private {Array<SignChallenge>} */
|
| this.signChallenges_ = signChallenges;
|
| /** @private {string|undefined} */
|
| this.defaultChallenge_ = opt_defaultChallenge;
|
| @@ -429,7 +429,7 @@ Signer.prototype.checkAppIds_ = function() {
|
| * Called with the result of checking the origin. When the origin is allowed
|
| * to claim the app ids, begins checking whether the app ids also list the
|
| * origin.
|
| - * @param {!Array.<string>} appIds The app ids.
|
| + * @param {!Array<string>} appIds The app ids.
|
| * @param {boolean} result Whether the origin could claim the app ids.
|
| * @private
|
| */
|
| @@ -445,7 +445,7 @@ Signer.prototype.originChecked_ = function(appIds, result) {
|
| /** @private {!AppIdChecker} */
|
| this.appIdChecker_ = new AppIdChecker(FACTORY_REGISTRY.getTextFetcher(),
|
| this.timer_.clone(), this.sender_.origin,
|
| - /** @type {!Array.<string>} */ (appIds), this.allowHttp_,
|
| + /** @type {!Array<string>} */ (appIds), this.allowHttp_,
|
| this.logMsgUrl_);
|
| this.appIdChecker_.doCheck().then(this.appIdChecked_.bind(this));
|
| };
|
|
|