| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "chrome/browser/ui/android/autofill/autofill_dialog_controller_android.
h" | 5 #include "chrome/browser/ui/android/autofill/autofill_dialog_controller_android.
h" |
| 6 | 6 |
| 7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
| 8 #include "base/android/jni_array.h" | 8 #include "base/android/jni_array.h" |
| 9 #include "base/android/jni_string.h" | 9 #include "base/android/jni_string.h" |
| 10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 base::android::ConvertUTF8ToJavaString( | 300 base::android::ConvertUTF8ToJavaString( |
| 301 env, last_used_shipping); | 301 env, last_used_shipping); |
| 302 ScopedJavaLocalRef<jstring> jlast_used_card = | 302 ScopedJavaLocalRef<jstring> jlast_used_card = |
| 303 base::android::ConvertUTF8ToJavaString( | 303 base::android::ConvertUTF8ToJavaString( |
| 304 env, last_used_credit_card); | 304 env, last_used_credit_card); |
| 305 ScopedJavaLocalRef<jstring> jmerchant_domain = | 305 ScopedJavaLocalRef<jstring> jmerchant_domain = |
| 306 base::android::ConvertUTF8ToJavaString( | 306 base::android::ConvertUTF8ToJavaString( |
| 307 env, source_url_.GetOrigin().spec()); | 307 env, source_url_.GetOrigin().spec()); |
| 308 java_object_.Reset(Java_AutofillDialogControllerAndroid_create( | 308 java_object_.Reset(Java_AutofillDialogControllerAndroid_create( |
| 309 env, | 309 env, |
| 310 reinterpret_cast<jint>(this), | 310 reinterpret_cast<intptr_t>(this), |
| 311 WindowAndroidHelper::FromWebContents(contents_)-> | 311 WindowAndroidHelper::FromWebContents(contents_)-> |
| 312 GetWindowAndroid()->GetJavaObject().obj(), | 312 GetWindowAndroid()->GetJavaObject().obj(), |
| 313 request_full_billing_address, request_shipping_address, | 313 request_full_billing_address, request_shipping_address, |
| 314 request_phone_numbers, incognito_mode, | 314 request_phone_numbers, incognito_mode, |
| 315 last_used_choice_is_autofill, jlast_used_account_name.obj(), | 315 last_used_choice_is_autofill, jlast_used_account_name.obj(), |
| 316 jlast_used_billing.obj(), jlast_used_shipping.obj(), | 316 jlast_used_billing.obj(), jlast_used_shipping.obj(), |
| 317 jlast_used_card.obj(), | 317 jlast_used_card.obj(), |
| 318 jmerchant_domain.obj())); | 318 jmerchant_domain.obj())); |
| 319 } | 319 } |
| 320 | 320 |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 | 439 |
| 440 void AutofillDialogControllerAndroid::LogOnCancelMetrics() { | 440 void AutofillDialogControllerAndroid::LogOnCancelMetrics() { |
| 441 GetMetricLogger().LogDialogUiDuration( | 441 GetMetricLogger().LogDialogUiDuration( |
| 442 base::Time::Now() - dialog_shown_timestamp_, | 442 base::Time::Now() - dialog_shown_timestamp_, |
| 443 AutofillMetrics::DIALOG_CANCELED); | 443 AutofillMetrics::DIALOG_CANCELED); |
| 444 | 444 |
| 445 GetMetricLogger().LogDialogUiEvent(AutofillMetrics::DIALOG_UI_CANCELED); | 445 GetMetricLogger().LogDialogUiEvent(AutofillMetrics::DIALOG_UI_CANCELED); |
| 446 } | 446 } |
| 447 | 447 |
| 448 } // namespace autofill | 448 } // namespace autofill |
| OLD | NEW |