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

Side by Side Diff: chrome/browser/resources/cryptotoken/approvedorigins.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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview Provides an interface to check whether the user has approved 6 * @fileoverview Provides an interface to check whether the user has approved
7 * an origin to use security keys. 7 * an origin to use security keys.
8 * 8 *
9 */ 9 */
10 'use strict'; 10 'use strict';
11 11
12 /** 12 /**
13 * Allows the caller to check whether the user has approved the use of 13 * Allows the caller to check whether the user has approved the use of
14 * security keys from an origin. 14 * security keys from an origin.
15 * @interface 15 * @interface
16 */ 16 */
17 function ApprovedOrigins() {} 17 function ApprovedOrigins() {}
18 18
19 /** 19 /**
20 * Checks whether the origin is approved to use security keys. (If not, an 20 * Checks whether the origin is approved to use security keys. (If not, an
21 * approval prompt may be shown.) 21 * approval prompt may be shown.)
22 * @param {string} origin The origin to approve. 22 * @param {string} origin The origin to approve.
23 * @param {number=} opt_tabId A tab id to display approval prompt in, if 23 * @param {number=} opt_tabId A tab id to display approval prompt in, if
24 * necessary. 24 * necessary.
25 * @return {Promise.<boolean>} A promise for the result of the check. 25 * @return {Promise<boolean>} A promise for the result of the check.
26 */ 26 */
27 ApprovedOrigins.prototype.isApprovedOrigin = function(origin, opt_tabId) {}; 27 ApprovedOrigins.prototype.isApprovedOrigin = function(origin, opt_tabId) {};
OLDNEW
« no previous file with comments | « chrome/browser/resources/cryptotoken/appid.js ('k') | chrome/browser/resources/cryptotoken/cryptotokenapprovedorigins.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698