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

Unified Diff: chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.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: Feedback 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_and_forms_page.js
diff --git a/chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js b/chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js
index b46e9fb3b2389df1a434bc8350d6d947227cd203..55aa0f5da294c0de38cbb4c62cf367ea685f7d6f 100644
--- a/chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js
+++ b/chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js
@@ -50,17 +50,13 @@ Polymer({
*/
loadPasswords_: function(passwordSectionOpened) {
if (passwordSectionOpened) {
- // TODO(hcarmona): Get real data.
- this.savedPasswords =
- [{origin: 'otherwebsite.com',
- username: 'bowser',
- password: '************'},
- {origin: 'otherlongwebsite.com',
- username: 'koopa',
- password: '*********'},
- {origin: 'otherverylongwebsite.com',
- username: 'goomba',
- password: '******'}];
+ settings.PasswordsPrivateApi.updatePasswordLists(
+ function(passwordList) {
+ this.savedPasswords = passwordList;
+ }.bind(this),
+ function(exceptionList) {
+ // TODO(hcarmona): Populate the password exceptions here.
+ });
}
},
});

Powered by Google App Engine
This is Rietveld 408576698