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

Unified Diff: chrome/browser/resources/settings/passwords_and_forms_page/autofill_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/autofill_section.js
diff --git a/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js b/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js
index ebda21bd5ebe471047a38d43f11c03c6a81fe746..a9b0e9ca05d565facde7459899ca3e847d7cfff1 100644
--- a/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js
+++ b/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js
@@ -427,5 +427,14 @@ AutofillManagerImpl.prototype = {
saveCreditCard_: function(event) {
this.autofillManager_.saveCreditCard(event.detail);
},
+
+ /**
+ * @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