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

Unified Diff: chrome/browser/resources/options/autofill_options.js

Issue 1027393002: Autofill settings - Fix editing of local addresses and credit cards. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | chrome/browser/resources/options/autofill_options_list.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/autofill_options.js
diff --git a/chrome/browser/resources/options/autofill_options.js b/chrome/browser/resources/options/autofill_options.js
index ce8dd1fd5d91f713524209199183d29fd700c679..d90469280d88e2cf85caf9a8fd8f11841d2cd2d7 100644
--- a/chrome/browser/resources/options/autofill_options.js
+++ b/chrome/browser/resources/options/autofill_options.js
@@ -175,34 +175,6 @@ cr.define('options', function() {
},
/**
- * For local Autofill data, this function causes the AutofillOptionsHandler
- * to call showEditAddressOverlay(). For Wallet data, the user is
- * redirected to the Wallet web interface.
- * @param {Object} entry The relevant entry in data model.
- * @private
- */
- loadAddressEditor_: function(entry) {
- if (entry.isLocal)
- chrome.send('loadAddressEditor', [entry.guid]);
- else
- window.open(loadTimeData.getString('manageWalletAddressesUrl'));
- },
-
- /**
- * For local Autofill data, this function causes the AutofillOptionsHandler
- * to call showEditCreditCardOverlay(). For Wallet data, the user is
- * redirected to the Wallet web interface.
- * @param {Object} entry The relevant entry in data model.
- * @private
- */
- loadCreditCardEditor_: function(entry) {
- if (entry.isLocal)
- chrome.send('loadCreditCardEditor', [entry.guid]);
- else
- window.open(loadTimeData.getString('manageWalletPaymentMethodsUrl'));
- },
-
- /**
* Shows the 'Edit address' overlay, using the data in |address| to fill the
* input fields. |address| is a list with one item, an associative array
* that contains the address data.
@@ -252,14 +224,6 @@ cr.define('options', function() {
AutofillOptions.getInstance().removeData_(guid, metricsAction);
};
- AutofillOptions.loadAddressEditor = function(entry) {
- AutofillOptions.getInstance().loadAddressEditor_(entry);
- };
-
- AutofillOptions.loadCreditCardEditor = function(entry) {
- AutofillOptions.getInstance().loadCreditCardEditor_(entry);
- };
-
AutofillOptions.editAddress = function(address) {
AutofillOptions.getInstance().showEditAddressOverlay_(address);
};
« no previous file with comments | « no previous file | chrome/browser/resources/options/autofill_options_list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698