| Index: chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialog.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialog.java b/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialog.java
|
| index aba875325b197b515e7f9b1ea27be5b75e435ac1..8e386225b12363a92913782e68fecd07b5e84b93 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialog.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialog.java
|
| @@ -156,7 +156,7 @@ public class AutofillDialog extends AlertDialog
|
| }
|
|
|
| protected AutofillDialog(Context context, AutofillDialogDelegate delegate,
|
| - String useBillingForShippingText, String saveLocallyText) {
|
| + String saveLocallyText) {
|
| super(context);
|
| getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
|
| mDelegate = delegate;
|
| @@ -170,9 +170,6 @@ public class AutofillDialog extends AlertDialog
|
| inflate(R.layout.autofill_dialog_content, null);
|
| mContentView.setAutofillDialog(this);
|
|
|
| - CheckBox useBillingCheck = getUseBillingForShippingCheckBox();
|
| - useBillingCheck.setText(useBillingForShippingText);
|
| - useBillingCheck.setChecked(true);
|
| getSaveLocallyCheckBox().setText(saveLocallyText);
|
|
|
| String[] labels = new String[AutofillDialogConstants.NUM_SECTIONS];
|
| @@ -308,9 +305,6 @@ public class AutofillDialog extends AlertDialog
|
| }
|
|
|
| mDelegate.editingStart(section);
|
| - if (section == AutofillDialogConstants.SECTION_SHIPPING) {
|
| - getUseBillingForShippingCheckBox().setChecked(false);
|
| - }
|
| AutofillDialogMenuItem currentItem =
|
| (AutofillDialogMenuItem) spinner.getItemAtPosition(position);
|
| if (currentItem.mIndex == ADD_MENU_ITEM_INDEX) {
|
| @@ -324,10 +318,6 @@ public class AutofillDialog extends AlertDialog
|
| public void onNothingSelected(AdapterView<?> spinner) {
|
| }
|
|
|
| - private CheckBox getUseBillingForShippingCheckBox() {
|
| - return (CheckBox) mContentView.findViewById(R.id.use_billing_checkbox);
|
| - }
|
| -
|
| /**
|
| * @param spinner The dropdown that was selected by the user.
|
| * @param section The section that the dropdown corresponds to.
|
| @@ -558,13 +548,6 @@ public class AutofillDialog extends AlertDialog
|
| }
|
|
|
| /**
|
| - * @return Whether the billing address should be used as shipping address.
|
| - */
|
| - public boolean shouldUseBillingForShipping() {
|
| - return getUseBillingForShippingCheckBox().isChecked();
|
| - }
|
| -
|
| - /**
|
| * @return Whether the details entered should be saved locally on the device.
|
| */
|
| public boolean shouldSaveDetailsLocally() {
|
|
|