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

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

Issue 1918823011: [MD Settings] Add initial autofill sub page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 8 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 f7ce107edf9fd8a66f24cc1d1b6bf314ddf3af5c..f9c10412a0e53ae53780ec18487c864cce04fbc6 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
@@ -198,6 +198,19 @@ Polymer({
},
/**
+ * Shows the manage autofill sub page.
+ * @param {!Event} event
+ * @private
+ */
+ onAutofillTap_: function(event) {
+ // Ignore clicking on the toggle button and verify autofill is enabled.
+ if (Polymer.dom(event).localTarget != this.$.autofillToggle &&
+ this.getPref('autofill.enabled').value) {
+ this.$.pages.setSubpageChain(['manage-autofill']);
+ }
+ },
+
+ /**
* Shows the manage passwords sub page.
* @param {!Event} event
* @private

Powered by Google App Engine
This is Rietveld 408576698