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

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

Issue 2762433002: MD Settings: move autofill and manage password toggles to their subpages. (Closed)
Patch Set: use this.i18n instead Created 3 years, 9 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 a70b96c77bc1387c2298b0b78c0adb73a9d43d6d..0abd9dbfbe09c6834be501cf20e4902b55bf72af 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
@@ -168,7 +168,7 @@ var ExceptionPairEntryEvent;
Polymer({
is: 'passwords-section',
- behaviors: [settings.GlobalScrollTargetBehavior],
+ behaviors: [settings.GlobalScrollTargetBehavior, I18nBehavior],
properties: {
/** Preferences state. */
@@ -351,7 +351,9 @@ Polymer({
* @return {string} password
* @private
*/
- getEmptyPassword_: function(length) { return ' '.repeat(length); },
+ getEmptyPassword_: function(length) {
+ return ' '.repeat(length);
+ },
/**
* Opens the password action menu.
@@ -390,5 +392,14 @@ Polymer({
this.setPassword(item.loginPair, item.plaintextPassword);
}.bind(this));
},
+
+ /**
+ * @private
+ * @param {boolean} toggleValue
+ * @return {string}
+ */
+ getOnOffLabel_: function(toggleValue) {
+ return toggleValue ? this.i18n('toggleOn') : this.i18n('toggleOff');
+ }
});
})();

Powered by Google App Engine
This is Rietveld 408576698