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

Unified Diff: third_party/closure_compiler/externs/passwords_private.js

Issue 1892613006: Add functions to the passwords private api that update the lists. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: third_party/closure_compiler/externs/passwords_private.js
diff --git a/third_party/closure_compiler/externs/passwords_private.js b/third_party/closure_compiler/externs/passwords_private.js
index b320d8a02ea8ed9bc435f2d2633bca2c5d29d6cd..e23eb87927cd91716b100692d5101b63795a1d01 100644
--- a/third_party/closure_compiler/externs/passwords_private.js
+++ b/third_party/closure_compiler/externs/passwords_private.js
@@ -67,7 +67,8 @@ chrome.passwordsPrivate.removePasswordException = function(exceptionUrl) {};
* Returns the plaintext password corresponding to |loginPair|. Note that on
* some operating systems, this call may result in an OS-level reauthentication.
* Once the password has been fetched, it will be returned via the
- * onPlaintextPasswordRetrieved event.
+ * onPlaintextPasswordRetrieved event. TODO(hcarmona): Investigate using a
+ * callback for consistency.
* @param {!chrome.passwordsPrivate.LoginPair} loginPair The LoginPair
* corresponding to the entry whose password is to be returned.
* @see https://developer.chrome.com/extensions/passwordsPrivate#method-requestPlaintextPassword
@@ -75,6 +76,22 @@ chrome.passwordsPrivate.removePasswordException = function(exceptionUrl) {};
chrome.passwordsPrivate.requestPlaintextPassword = function(loginPair) {};
/**
+ * Returns the list of saved passwords using |callback|.
+ * @param {function(!Array<!chrome.passwordsPrivate.PasswordUiEntry>):void}
+ * callback Called with the list of saved passwords.
+ * @see https://developer.chrome.com/extensions/passwordsPrivate#method-getSavedPasswordList
+ */
+chrome.passwordsPrivate.getSavedPasswordList = function(callback) {};
+
+/**
+ * Returns the list of password exceptions using |callback|.
+ * @param {function(!Array<string>):void} callback Called with the list of
+ * password exceptions.
+ * @see https://developer.chrome.com/extensions/passwordsPrivate#method-getPasswordExceptionList
+ */
+chrome.passwordsPrivate.getPasswordExceptionList = function(callback) {};
+
+/**
* Fired when the saved passwords list has changed, meaning that an entry has
* been added or removed. Note that this event fires as soon as a listener is
* added.

Powered by Google App Engine
This is Rietveld 408576698