Index: components/payments/content/android/payment_details_validation_android.cc |
diff --git a/components/payments/content/android/payment_details_validation_android.cc b/components/payments/content/android/payment_details_validation_android.cc |
index 072dda083a40024d2a04f52f27816db23a513489..ddc7ffc495139ae102b0a40282ca19f651782cd2 100644 |
--- a/components/payments/content/android/payment_details_validation_android.cc |
+++ b/components/payments/content/android/payment_details_validation_android.cc |
@@ -4,9 +4,14 @@ |
#include "components/payments/content/android/payment_details_validation_android.h" |
+#include <stdint.h> |
+ |
+#include <cstring> |
#include <string> |
#include <utility> |
+#include <vector> |
+#include "base/android/jni_android.h" |
#include "components/payments/content/payment_details_validation.h" |
#include "components/payments/content/payment_request.mojom.h" |
#include "jni/PaymentValidator_jni.h" |
@@ -25,11 +30,11 @@ jboolean ValidatePaymentDetails( |
if (!mojom::PaymentDetails::Deserialize(std::move(mojo_buffer), &details)) |
return false; |
std::string unused_error_message; |
- return payments::validatePaymentDetails(details, &unused_error_message); |
+ return validatePaymentDetails(details, &unused_error_message); |
} |
-} // namespace payments |
- |
bool RegisterPaymentValidator(JNIEnv* env) { |
- return payments::RegisterNativesImpl(env); |
+ return RegisterNativesImpl(env); |
} |
+ |
+} // namespace payments |