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

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

Issue 2109233002: [MD Settings] Add Edit/Create Address Dialog to MD Settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 5 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 001cc0dd2c4fe74f5985d4161e0b3d8c9543f83e..6ba5811ebd63b929a22f67c95dd2c8cd535355b4 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
@@ -75,8 +75,8 @@
* @private
*/
onAddAddressTap_: function(e) {
- // TODO(hcarmona): implement adding an address.
e.preventDefault();
+ this.$.addressEditDialog.open({});
},
/**
@@ -88,9 +88,9 @@
/** @type {chrome.autofillPrivate.AddressEntry} */
var address = menu.itemData;
- // TODO(hcarmona): implement editing a local address.
-
- if (!address.metadata.isLocal)
+ if (address.metadata.isLocal)
+ this.$.addressEditDialog.open(address);
+ else
window.open(this.i18n('manageAddressesUrl'));
menu.closeMenu();

Powered by Google App Engine
This is Rietveld 408576698