| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 package org.chromium.chrome.browser.payments.ui; | 5 package org.chromium.chrome.browser.payments.ui; |
| 6 | 6 |
| 7 import org.chromium.chrome.R; | 7 import org.chromium.chrome.R; |
| 8 | 8 |
| 9 import java.util.ArrayList; | 9 import java.util.ArrayList; |
| 10 import java.util.Arrays; | 10 import java.util.Arrays; |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 } | 159 } |
| 160 | 160 |
| 161 /** | 161 /** |
| 162 * Returns the resource ID for the string telling users that they can add a
new option. | 162 * Returns the resource ID for the string telling users that they can add a
new option. |
| 163 * | 163 * |
| 164 * @return ID if the user can add a new option, or 0 if they can't. | 164 * @return ID if the user can add a new option, or 0 if they can't. |
| 165 */ | 165 */ |
| 166 public int getAddStringId() { | 166 public int getAddStringId() { |
| 167 if (mDataType == PaymentRequestUI.TYPE_SHIPPING_ADDRESSES) { | 167 if (mDataType == PaymentRequestUI.TYPE_SHIPPING_ADDRESSES) { |
| 168 return R.string.autofill_create_profile; | 168 return R.string.autofill_create_profile; |
| 169 } else if (mDataType == PaymentRequestUI.TYPE_CONTACT_DETAILS) { | 169 } else if (mDataType == PaymentRequestUI.TYPE_PAYER_INFO_DETAILS) { |
| 170 return R.string.payments_add_contact; | 170 return R.string.payments_add_payer_info; |
| 171 } else if (mDataType == PaymentRequestUI.TYPE_PAYMENT_METHODS) { | 171 } else if (mDataType == PaymentRequestUI.TYPE_PAYMENT_METHODS) { |
| 172 return R.string.autofill_create_credit_card; | 172 return R.string.autofill_create_credit_card; |
| 173 } | 173 } |
| 174 return 0; | 174 return 0; |
| 175 } | 175 } |
| 176 } | 176 } |
| OLD | NEW |