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

Unified Diff: trunk/src/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogGlue.java

Issue 13877016: Revert 195316 "Remove "Use billing for shipping" checkbox in fav..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: trunk/src/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogGlue.java
===================================================================
--- trunk/src/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogGlue.java (revision 195318)
+++ trunk/src/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogGlue.java (working copy)
@@ -23,20 +23,21 @@
private final AutofillDialogAccountHelper mAccountHelper;
public AutofillDialogGlue(int nativeAutofillDialogViewAndroid, WindowAndroid nativeWindow,
- String saveLocallyText) {
+ String useBillingForShippingText, String saveLocallyText) {
mNativeDialogPopup = nativeAutofillDialogViewAndroid;
mAccountHelper = new AutofillDialogAccountHelper(this, nativeWindow.getContext());
- mAutofillDialog = new AutofillDialog(nativeWindow.getContext(), this, saveLocallyText);
+ mAutofillDialog = new AutofillDialog(
+ nativeWindow.getContext(), this, useBillingForShippingText, saveLocallyText);
mAutofillDialog.show();
}
@CalledByNative
private static AutofillDialogGlue create(int nativeAutofillDialogViewAndroid,
WindowAndroid nativeWindow,
- String saveLocallyText) {
+ String useBillingForShippingText, String saveLocallyText) {
return new AutofillDialogGlue(nativeAutofillDialogViewAndroid, nativeWindow,
- saveLocallyText);
+ useBillingForShippingText, saveLocallyText);
}
/**
@@ -98,6 +99,14 @@
}
/**
+ * @see AutofillDialog#shouldUseBillingForShipping()
+ */
+ @CalledByNative
+ private boolean shouldUseBillingForShipping() {
+ return mAutofillDialog.shouldUseBillingForShipping();
+ }
+
+ /**
* @see AutofillDialog#shouldSaveDetailsLocally()
*/
@CalledByNative

Powered by Google App Engine
This is Rietveld 408576698