This source file includes following definitions.
- DidFillOrPreviewField
- Register
#include "chrome/browser/ui/android/autofill/autofill_logger_android.h"
#include "jni/AutofillLogger_jni.h"
namespace autofill {
void AutofillLoggerAndroid::DidFillOrPreviewField(
const base::string16& autofilled_value,
const base::string16& profile_full_name) {
JNIEnv* env = base::android::AttachCurrentThread();
ScopedJavaLocalRef<jstring> j_autofilled_value =
base::android::ConvertUTF16ToJavaString(env, autofilled_value);
ScopedJavaLocalRef<jstring> j_profile_full_name =
base::android::ConvertUTF16ToJavaString(env, profile_full_name);
Java_AutofillLogger_didFillField(
env, j_autofilled_value.obj(), j_profile_full_name.obj());
}
bool AutofillLoggerAndroid::Register(JNIEnv* env) {
return RegisterNativesImpl(env);
}
}