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

Unified Diff: third_party/closure_compiler/interfaces/quick_unlock_private_interface.js

Issue 2376293005: cros: Tweaked the good/bad pin checking on the js to use the new quick unlock api function. (Closed)
Patch Set: Fixed patch set 12 errors. Created 3 years, 12 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
« no previous file with comments | « third_party/closure_compiler/externs/quick_unlock_private.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/closure_compiler/interfaces/quick_unlock_private_interface.js
diff --git a/third_party/closure_compiler/interfaces/quick_unlock_private_interface.js b/third_party/closure_compiler/interfaces/quick_unlock_private_interface.js
index 5fe9756e0619d1e2d9a651b1d19fc27241d74c20..933191964eea9a739005d191b9fd47b86608ed0a 100644
--- a/third_party/closure_compiler/interfaces/quick_unlock_private_interface.js
+++ b/third_party/closure_compiler/interfaces/quick_unlock_private_interface.js
@@ -32,6 +32,30 @@ QuickUnlockPrivate.prototype = {
getActiveModes: assertNotReached,
/**
+ * Checks if the given credential can be used for the given unlock mode.
+ * Enterprise policy can change credential requirements.
+ * @param {!chrome.quickUnlockPrivate.QuickUnlockMode} mode The quick unlock
+ * mode that is used.
+ * @param {string} credential The given credential.
+ * @param {function(!chrome.quickUnlockPrivate.CredentialCheck):void}
+ * onComplete Called with a list of warnings and errors the given
+ * |credential| has (or an empty list if there are none).
+ * @see https://developer.chrome.com/extensions/quickUnlockPrivate#method-checkCredential
+ */
+ checkCredential: assertNotReached,
+
+ /**
+ * Gets the credential requirements for the given unlock mode.
+ * @param {!chrome.quickUnlockPrivate.QuickUnlockMode} mode The quick unlock
+ * mode that is used.
+ * @param {function(!chrome.quickUnlockPrivate.CredentialRequirements):void}
+ * onComplete Called with the credential requirements of the given
+ * |mode|.
+ * @see https://developer.chrome.com/extensions/quickUnlockPrivate#method-getCredentialRequirements
+ */
+ getCredentialRequirements: assertNotReached,
+
+ /**
* Update the set of quick unlock modes that are currently active/enabled.
* @param {string} accountPassword The password associated with the account
* (e.g. the GAIA password). This is required to change the quick unlock
« no previous file with comments | « third_party/closure_compiler/externs/quick_unlock_private.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698