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

Side by Side Diff: chrome/browser/resources/options/autofill_options.js

Issue 1001043004: Revamp desktop Autofill settings, round 2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unittest 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @typedef {{ 6 * @typedef {{
7 * creditCardNumber: string, 7 * creditCardNumber: string,
8 * expirationMonth: string, 8 * expirationMonth: string,
9 * expirationYear: string, 9 * expirationYear: string,
10 * guid: string, 10 * guid: string,
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 </if> 84 </if>
85 85
86 $('autofill-help').onclick = function(event) { 86 $('autofill-help').onclick = function(event) {
87 chrome.send('coreOptionsUserMetricsAction', 87 chrome.send('coreOptionsUserMetricsAction',
88 ['Options_AutofillShowAbout']); 88 ['Options_AutofillShowAbout']);
89 return true; // Always follow the href 89 return true; // Always follow the href
90 }; 90 };
91 91
92 var enableWalletIntegration = 92 var enableWalletIntegration =
93 loadTimeData.getBoolean('enableAutofillWalletIntegration'); 93 loadTimeData.getBoolean('enableAutofillWalletIntegration');
94 $('autofill-wallet-remask-cards-area').hidden = !enableWalletIntegration;
95 $('autofill-wallet-setting-area').hidden = !enableWalletIntegration; 94 $('autofill-wallet-setting-area').hidden = !enableWalletIntegration;
96 // TODO(estade): there should probably be some indication of success.
97 $('remask-server-cards-link').onclick = function(event) {
98 chrome.send('remaskServerCards');
99 };
100 95
101 // TODO(jhawkins): What happens when Autofill is disabled whilst on the 96 // TODO(jhawkins): What happens when Autofill is disabled whilst on the
102 // Autofill options page? 97 // Autofill options page?
103 }, 98 },
104 99
105 /** 100 /**
106 * Creates, decorates and initializes the address list. 101 * Creates, decorates and initializes the address list.
107 * @private 102 * @private
108 */ 103 */
109 createAddressList_: function() { 104 createAddressList_: function() {
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 AutofillOptions.getInstance().showEditCreditCardOverlay_(creditCard); 262 AutofillOptions.getInstance().showEditCreditCardOverlay_(creditCard);
268 }; 263 };
269 264
270 // Export 265 // Export
271 return { 266 return {
272 AutofillOptions: AutofillOptions 267 AutofillOptions: AutofillOptions
273 }; 268 };
274 269
275 }); 270 });
276 271
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/autofill_options.html ('k') | chrome/browser/resources/options/autofill_options_list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698