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

Unified Diff: chrome/browser/resources/cryptotoken/signer.js

Issue 917093003: Shorten Closure template notation from Array.<*> to Array<*>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove cvox Created 5 years, 10 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/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));
};
« no previous file with comments | « chrome/browser/resources/cryptotoken/sha256.js ('k') | chrome/browser/resources/cryptotoken/singlesigner.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698