diff options
Diffstat (limited to 'chromium/chrome/browser/resources/settings/autofill_page/credit_card_list_entry.js')
-rw-r--r-- | chromium/chrome/browser/resources/settings/autofill_page/credit_card_list_entry.js | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/chromium/chrome/browser/resources/settings/autofill_page/credit_card_list_entry.js b/chromium/chrome/browser/resources/settings/autofill_page/credit_card_list_entry.js deleted file mode 100644 index 336492db8ae..00000000000 --- a/chromium/chrome/browser/resources/settings/autofill_page/credit_card_list_entry.js +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2018 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -/** - * @fileoverview 'credit-card-list-entry' is a credit card row to be shown in - * the settings page. - */ - -Polymer({ - is: 'settings-credit-card-list-entry', - - behaviors: [ - I18nBehavior, - ], - - properties: { - /** - * A saved credit card. - * @type {!PaymentsManager.CreditCardEntry} - */ - creditCard: Object, - }, - - /** - * Opens the credit card action menu. - * @private - */ - onDotsMenuClick_: function() { - this.fire('dots-card-menu-click', { - creditCard: this.creditCard, - anchorElement: this.$$('#creditCardMenu'), - }); - }, - - /** @private */ - onRemoteEditClick_: function() { - this.fire('remote-card-menu-click'); - }, - - /** - * The 3-dot menu should not be shown if the card is entirely remote. - * @return {boolean} - * @private - */ - showDots_: function() { - return !!( - this.creditCard.metadata.isLocal || this.creditCard.metadata.isCached); - }, -}); |