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

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

Issue 2079853002: Add Edit/Create Address Dialog to MD Settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: spacing and rebase Created 4 years, 6 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 4d3b0f5d9bd953f3cf909aae987316c7d2ff6b03..c9704a875e47d3c3a9cc60db462a02d8a52ef8e1 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
@@ -72,8 +72,8 @@
* @private
*/
onAddAddressTap_: function(e) {
- // TODO(hcarmona): implement adding an address.
e.preventDefault();
+ this.$.addressEditDialog.open({});
},
/**
@@ -81,7 +81,8 @@
* @private
*/
onMenuEditAddressTap_: function() {
- // TODO(hcarmona): implement editing an address.
+ var menu = this.$.addressSharedMenu;
+ this.$.addressEditDialog.open(menu.itemData);
this.$.addressSharedMenu.closeMenu();
},

Powered by Google App Engine
This is Rietveld 408576698