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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/payments/ui/SectionInformation.java

Issue 2413833002: PaymentRequest: Rename ContactInfo to PayerInfo.
Patch Set: test Created 4 years, 2 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 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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698