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

Side by Side Diff: chrome/browser/payments/android/chrome_payments_jni_registrar.cc

Issue 2815763002: Prevent usage of web payments API over insecure HTTPS. (Closed)
Patch Set: Fix typo Created 3 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/payments/android/ssl_validity_checker_android.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/payments/android/ssl_validity_checker_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698