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

Unified Diff: chrome/browser/resources/settings/passwords_and_forms_page/passwords_section.js

Issue 1591053002: Add a password handler to get the list of passwords in md-settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: chrome.passwordsPrivate Created 4 years, 11 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/settings/passwords_and_forms_page/passwords_section.js
diff --git a/chrome/browser/resources/settings/passwords_and_forms_page/passwords_section.js b/chrome/browser/resources/settings/passwords_and_forms_page/passwords_section.js
index fc506e8b83868ed33696480fa02f6410303f4163..5e154b127a265da45279b862a09d38736d93b658 100644
--- a/chrome/browser/resources/settings/passwords_and_forms_page/passwords_section.js
+++ b/chrome/browser/resources/settings/passwords_and_forms_page/passwords_section.js
@@ -19,11 +19,18 @@ Polymer({
properties: {
/**
* An array of passwords to display.
+ * @type {!Array<!PasswordUiEntry>}
*/
savedPasswords: {
- type: Array,
value: function() { return []; },
},
},
+
+ /**
+ * Creates an empty password of specified length.
+ * @param {number} length
+ * @return {string} password
+ */
+ getEmptyPassword(length) { return ' '.repeat(length); },
});
})();

Powered by Google App Engine
This is Rietveld 408576698