| Index: chrome/browser/resources/settings/passwords_and_forms_page/password_edit_dialog.js
|
| diff --git a/chrome/browser/resources/settings/passwords_and_forms_page/password_edit_dialog.js b/chrome/browser/resources/settings/passwords_and_forms_page/password_edit_dialog.js
|
| index cb9aa3f7adb226c36dcc9f991ed4b860989e284c..94f958b57091cfa4dfe56efd881b823f6cea3935 100644
|
| --- a/chrome/browser/resources/settings/passwords_and_forms_page/password_edit_dialog.js
|
| +++ b/chrome/browser/resources/settings/passwords_and_forms_page/password_edit_dialog.js
|
| @@ -37,12 +37,11 @@ Polymer({
|
|
|
| /**
|
| * Gets the password input's type. Should be 'text' when password is visible
|
| - * and 'password' when it's not.
|
| - * @param {string} password
|
| + * or when there's federated text otherwise 'password'.
|
| * @private
|
| */
|
| - getPasswordInputType_: function(password) {
|
| - return password ? 'text' : 'password';
|
| + getPasswordInputType_: function() {
|
| + return this.password || this.item.federationText ? 'text' : 'password';
|
| },
|
|
|
| /**
|
| @@ -58,15 +57,16 @@ Polymer({
|
|
|
| /**
|
| * Gets the text of the password. Will use the value of |password| unless it
|
| - * cannot be shown, in which case it will be spaces.
|
| - * @param {!chrome.passwordsPrivate.PasswordUiEntry} item
|
| - * @param {string} password
|
| + * cannot be shown, in which case it will be spaces. It can also be the
|
| + * federated text.
|
| * @private
|
| */
|
| - getPassword_: function(item, password) {
|
| - if (password)
|
| - return password;
|
| - return item ? ' '.repeat(item.numCharactersInPassword) : '';
|
| + getPassword_: function() {
|
| + if (!this.item)
|
| + return '';
|
| +
|
| + return this.item.federationText || this.password ||
|
| + ' '.repeat(this.item.numCharactersInPassword);
|
| },
|
|
|
| /**
|
|
|