diff options
author | benquan@chromium.org <benquan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-30 18:12:32 +0000 |
---|---|---|
committer | benquan@chromium.org <benquan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-30 18:12:32 +0000 |
commit | cafb9b6dc0f2ae6132016dbac7f465b45e174490 (patch) | |
tree | 4919720f4fb26a34a71d4971fa579a1f6e8e206e /components | |
parent | b7e144b3b26c78e3e74804c9c3a71fbf55ef5d51 (diff) | |
download | chromium_src-cafb9b6dc0f2ae6132016dbac7f465b45e174490.zip chromium_src-cafb9b6dc0f2ae6132016dbac7f465b45e174490.tar.gz chromium_src-cafb9b6dc0f2ae6132016dbac7f465b45e174490.tar.bz2 |
Determine card egilibility by card.status from server only.
Sugar server already set status when the card is not eligible for transaction, like UNSUPPORTED_COUNTRY, AMEX_NOT_SUPPORTED etc.
This CL also enables BILLING_INCOMPLETE as we want it to be selectable and put it under edit mode when the user selects it.
BUG=245006
Review URL: https://chromiumcodereview.appspot.com/16208002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203182 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components')
-rw-r--r-- | components/autofill/browser/wallet/wallet_test_util.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/autofill/browser/wallet/wallet_test_util.cc b/components/autofill/browser/wallet/wallet_test_util.cc index f4f1dc0..85bfce5 100644 --- a/components/autofill/browser/wallet/wallet_test_util.cc +++ b/components/autofill/browser/wallet/wallet_test_util.cc @@ -127,7 +127,8 @@ scoped_ptr<WalletItems::MaskedInstrument> GetTestMaskedInstrumentAmex() { "default_instrument_id", GetTestAddress(), WalletItems::MaskedInstrument::AMEX, - WalletItems::MaskedInstrument::VALID); + // Amex cards are marked with status AMEX_NOT_SUPPORTED by the server. + WalletItems::MaskedInstrument::AMEX_NOT_SUPPORTED); } scoped_ptr<WalletItems::MaskedInstrument> GetTestNonDefaultMaskedInstrument() { |