OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/payments/android/chrome_payments_jni_registrar.h" | 5 #include "chrome/browser/payments/android/chrome_payments_jni_registrar.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_registrar.h" | 8 #include "base/android/jni_registrar.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "chrome/browser/payments/android/journey_logger_android.h" | 10 #include "chrome/browser/payments/android/journey_logger_android.h" |
| 11 #include "chrome/browser/payments/android/ssl_validity_checker_android.h" |
11 | 12 |
12 namespace payments { | 13 namespace payments { |
13 namespace android { | 14 namespace android { |
14 | 15 |
15 static base::android::RegistrationMethod kChromePaymentsRegisteredMethods[] = { | 16 static base::android::RegistrationMethod kChromePaymentsRegisteredMethods[] = { |
16 {"JourneyLogger", JourneyLoggerAndroid::Register}, | 17 {"JourneyLogger", JourneyLoggerAndroid::Register}, |
| 18 {"SslValidityChecker", RegisterSslValidityChecker}, |
17 }; | 19 }; |
18 | 20 |
19 bool RegisterChromePayments(JNIEnv* env) { | 21 bool RegisterChromePayments(JNIEnv* env) { |
20 return base::android::RegisterNativeMethods( | 22 return base::android::RegisterNativeMethods( |
21 env, kChromePaymentsRegisteredMethods, | 23 env, kChromePaymentsRegisteredMethods, |
22 arraysize(kChromePaymentsRegisteredMethods)); | 24 arraysize(kChromePaymentsRegisteredMethods)); |
23 } | 25 } |
24 | 26 |
25 } // namespace android | 27 } // namespace android |
26 } // namespace payments | 28 } // namespace payments |
OLD | NEW |