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

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

Issue 858053003: Minor changes to still-unfinal chrome://settings/autofill wallet UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dont return void and add include Created 5 years, 11 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 } 82 }
83 }; 83 };
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 $('autofill-wallet-card-area').hidden = 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 // TODO(estade): there should probably be some indication of success. 96 // TODO(estade): there should probably be some indication of success.
95 $('remask-server-cards-link').onclick = function(event) { 97 $('remask-server-cards-link').onclick = function(event) {
96 chrome.send('remaskServerCards'); 98 chrome.send('remaskServerCards');
97 }; 99 };
98 100
99 // TODO(jhawkins): What happens when Autofill is disabled whilst on the 101 // TODO(jhawkins): What happens when Autofill is disabled whilst on the
100 // Autofill options page? 102 // Autofill options page?
101 }, 103 },
102 104
103 /** 105 /**
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 AutofillOptions.getInstance().showEditCreditCardOverlay_(creditCard); 261 AutofillOptions.getInstance().showEditCreditCardOverlay_(creditCard);
260 }; 262 };
261 263
262 // Export 264 // Export
263 return { 265 return {
264 AutofillOptions: AutofillOptions 266 AutofillOptions: AutofillOptions
265 }; 267 };
266 268
267 }); 269 });
268 270
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/autofill_options.html ('k') | components/autofill/core/browser/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698