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

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

Issue 2693373002: [MD Settings] Add title to show/hide password button. (Closed)
Patch Set: feedback Created 3 years, 10 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/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 b2b55bb5d5b3d89e2d12164f3a948984c63fe412..bfa1e2d283934a8ab457b62192c836d1dac2ad9c 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
@@ -46,6 +46,17 @@ Polymer({
},
/**
+ * Gets the title text for the show/hide icon.
+ * @param {string} password
+ * @param {string} hide The i18n text to use for 'Hide'
+ * @param {string} show The i18n text to use for 'Show'
+ * @private
+ */
+ showPasswordTitle_: function(password, hide, show) {
+ return password ? hide : show;
+ },
+
+ /**
* 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

Powered by Google App Engine
This is Rietveld 408576698