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

Unified Diff: chrome/browser/payments/android/chrome_payments_jni_registrar.cc

Issue 2808513002: [Payments] Add PaymentRequest checkout funnel UKMs. (Closed)
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/payments/android/chrome_payments_jni_registrar.cc
diff --git a/chrome/browser/payments/android/chrome_payments_jni_registrar.cc b/chrome/browser/payments/android/chrome_payments_jni_registrar.cc
new file mode 100644
index 0000000000000000000000000000000000000000..bd4058214059353cfc9efa0d306bd35270210204
--- /dev/null
+++ b/chrome/browser/payments/android/chrome_payments_jni_registrar.cc
@@ -0,0 +1,26 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/payments/android/chrome_payments_jni_registrar.h"
+
+#include "base/android/jni_android.h"
+#include "base/android/jni_registrar.h"
+#include "base/macros.h"
+#include "chrome/browser/payments/android/journey_logger_android.h"
+
+namespace payments {
+namespace android {
+
+static base::android::RegistrationMethod kChromePaymentsRegisteredMethods[] = {
+ {"JourneyLogger", JourneyLoggerAndroid::Register},
+};
+
+bool RegisterChromePayments(JNIEnv* env) {
+ return base::android::RegisterNativeMethods(
+ env, kChromePaymentsRegisteredMethods,
+ arraysize(kChromePaymentsRegisteredMethods));
+}
+
+} // namespace android
+} // namespace payments

Powered by Google App Engine
This is Rietveld 408576698