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

Unified Diff: chrome/browser/ui/android/autofill/autofill_dialog_view_android.cc

Issue 13851002: Add a checkbox for using the billing address for shipping (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nit fixes 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
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogGlue.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/android/autofill/autofill_dialog_view_android.cc
diff --git a/chrome/browser/ui/android/autofill/autofill_dialog_view_android.cc b/chrome/browser/ui/android/autofill/autofill_dialog_view_android.cc
index 09c3a9e28d29815f46395d659690fc3a3954e723..c5267a2f4cbf8d42bfe13c36654f11f19c21f797 100644
--- a/chrome/browser/ui/android/autofill/autofill_dialog_view_android.cc
+++ b/chrome/browser/ui/android/autofill/autofill_dialog_view_android.cc
@@ -37,11 +37,15 @@ AutofillDialogViewAndroid::~AutofillDialogViewAndroid() {}
void AutofillDialogViewAndroid::Show() {
JNIEnv* env = base::android::AttachCurrentThread();
+ ScopedJavaLocalRef<jstring> use_billing_for_shipping_text =
+ base::android::ConvertUTF16ToJavaString(
+ env, controller_->UseBillingForShippingText());
java_object_.Reset(Java_AutofillDialogGlue_create(
env,
reinterpret_cast<jint>(this),
WindowAndroidHelper::FromWebContents(controller_->web_contents())->
- GetWindowAndroid()->GetJavaObject().obj()));
+ GetWindowAndroid()->GetJavaObject().obj(),
+ use_billing_for_shipping_text.obj()));
}
void AutofillDialogViewAndroid::Hide() {
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogGlue.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698