| Index: chrome/browser/resources/cryptotoken/appid.js
|
| diff --git a/chrome/browser/resources/cryptotoken/appid.js b/chrome/browser/resources/cryptotoken/appid.js
|
| index fcaafac6cd6049c10da9b1109acdfd705bb0253c..f76012cb9024a75539ad8bf49769a089881c2802 100644
|
| --- a/chrome/browser/resources/cryptotoken/appid.js
|
| +++ b/chrome/browser/resources/cryptotoken/appid.js
|
| @@ -10,7 +10,7 @@
|
| /**
|
| * Parses the text as JSON and returns it as an array of strings.
|
| * @param {string} text Input JSON
|
| - * @return {!Array.<string>} Array of origins
|
| + * @return {!Array<string>} Array of origins
|
| */
|
| function getOriginsFromJson(text) {
|
| try {
|
| @@ -31,8 +31,8 @@ function getOriginsFromJson(text) {
|
|
|
| /**
|
| * Retrieves a set of distinct app ids from the sign challenges.
|
| - * @param {Array.<SignChallenge>=} signChallenges Input sign challenges.
|
| - * @return {Array.<string>} array of distinct app ids.
|
| + * @param {Array<SignChallenge>=} signChallenges Input sign challenges.
|
| + * @return {Array<string>} array of distinct app ids.
|
| */
|
| function getDistinctAppIds(signChallenges) {
|
| if (!signChallenges) {
|
| @@ -53,7 +53,7 @@ function getDistinctAppIds(signChallenges) {
|
| * @param {!TextFetcher} fetcher A URL fetcher.
|
| * @param {!Countdown} timer A timer by which to resolve all provided app ids.
|
| * @param {string} origin The origin to check.
|
| - * @param {!Array.<string>} appIds The app ids to check.
|
| + * @param {!Array<string>} appIds The app ids to check.
|
| * @param {boolean} allowHttp Whether to allow http:// URLs.
|
| * @param {string=} opt_logMsgUrl A log message URL.
|
| * @constructor
|
| @@ -72,7 +72,7 @@ function AppIdChecker(fetcher, timer, origin, appIds, allowHttp, opt_logMsgUrl)
|
| appIdsMap[appIds[i]] = appIds[i];
|
| }
|
| }
|
| - /** @private {Array.<string>} */
|
| + /** @private {Array<string>} */
|
| this.distinctAppIds_ = Object.keys(appIdsMap);
|
| /** @private {boolean} */
|
| this.allowHttp_ = allowHttp;
|
| @@ -89,7 +89,7 @@ function AppIdChecker(fetcher, timer, origin, appIds, allowHttp, opt_logMsgUrl)
|
|
|
| /**
|
| * Checks whether all the app ids provided can be asserted by the given origin.
|
| - * @return {Promise.<boolean>} A promise for the result of the check
|
| + * @return {Promise<boolean>} A promise for the result of the check
|
| */
|
| AppIdChecker.prototype.doCheck = function() {
|
| if (!this.distinctAppIds_.length)
|
| @@ -115,7 +115,7 @@ AppIdChecker.prototype.doCheck = function() {
|
| /**
|
| * Checks if a single appId can be asserted by the given origin.
|
| * @param {string} appId The appId to check
|
| - * @return {Promise.<boolean>} A promise for the result of the check
|
| + * @return {Promise<boolean>} A promise for the result of the check
|
| * @private
|
| */
|
| AppIdChecker.prototype.checkAppId_ = function(appId) {
|
| @@ -157,7 +157,7 @@ AppIdChecker.prototype.allAppIdsEqualOrigin_ = function() {
|
| /**
|
| * Fetches the allowed origins for an appId.
|
| * @param {string} appId Application id
|
| - * @return {Promise.<!Array.<string>>} A promise for a list of allowed origins
|
| + * @return {Promise<!Array<string>>} A promise for a list of allowed origins
|
| * for appId
|
| * @private
|
| */
|
|
|