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

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

Issue 2917343003: Merge-60 [Payments] Move the SelectedPaymentMethod metric to native. (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « chrome/browser/payments/android/journey_logger_android.h ('k') | components/payments/core/journey_logger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/payments/android/journey_logger_android.cc
diff --git a/chrome/browser/payments/android/journey_logger_android.cc b/chrome/browser/payments/android/journey_logger_android.cc
index d06b2db15cde74074a8730d760fff1c88959636d..e071517f0caf8552b28718cf4e3a7c1732abcd3e 100644
--- a/chrome/browser/payments/android/journey_logger_android.cc
+++ b/chrome/browser/payments/android/journey_logger_android.cc
@@ -98,6 +98,17 @@ void JourneyLoggerAndroid::SetEventOccurred(
journey_logger_.SetEventOccurred(static_cast<JourneyLogger::Event>(jevent));
}
+void JourneyLoggerAndroid::SetSelectedPaymentMethod(
+ JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& jcaller,
+ jint jpayment_method) {
+ DCHECK_GE(jpayment_method, 0);
+ DCHECK_LT(jpayment_method,
+ JourneyLogger::SelectedPaymentMethod::SELECTED_PAYMENT_METHOD_MAX);
+ journey_logger_.SetSelectedPaymentMethod(
+ static_cast<JourneyLogger::SelectedPaymentMethod>(jpayment_method));
+}
+
void JourneyLoggerAndroid::SetCompleted(
JNIEnv* env,
const base::android::JavaParamRef<jobject>& jcaller) {
« no previous file with comments | « chrome/browser/payments/android/journey_logger_android.h ('k') | components/payments/core/journey_logger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698