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

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

Issue 2733273002: MD Settings: add extension-control indicator for autofill and password. (Closed)
Patch Set: add tests for settings-toggle-button 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_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 b5cfb554c728540d62ab4dbf1de87741856dfdb8..b5d69c41aa43eb6fcf01f1597bfced7578035139 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
@@ -46,5 +46,18 @@ Polymer({
settings.navigateTo(settings.Route.MANAGE_PASSWORDS);
}
},
+
+ /**
+ * Return "secondary-action" to be used as the dom-class name if the toggle
+ * is on.
+ * @private
+ * @param {boolean} isToggleOn whether or not the associated toggle is on.
+ */
+ secondaryActionClass_: function(isToggleOn) {
+ // TODO(scottchen): Having to do this is kind of annoying, but it'll be a
+ // temporary patch. As we have plans to move the toggle completely into the
+ // subpages themselves, this code *should* be eliminated soon.
+ return isToggleOn ? 'secondary-action' : '';
+ },
});
})();

Powered by Google App Engine
This is Rietveld 408576698