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

Unified Diff: components/payments/content/android/journey_logger_android.cc

Issue 2790253002: [Payments] Don't record CanMakePayment when in incognito mode. (Closed)
Patch Set: Addressed comments 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: components/payments/content/android/journey_logger_android.cc
diff --git a/components/payments/content/android/journey_logger_android.cc b/components/payments/content/android/journey_logger_android.cc
index a0341814945e9e106eb41d600a95e3312b745049..e373ae8253dc6848196c63cac74a59ec9d3df27b 100644
--- a/components/payments/content/android/journey_logger_android.cc
+++ b/components/payments/content/android/journey_logger_android.cc
@@ -20,7 +20,8 @@ bool JourneyLoggerAndroid::Register(JNIEnv* env) {
return RegisterNativesImpl(env);
}
-JourneyLoggerAndroid::JourneyLoggerAndroid() {}
+JourneyLoggerAndroid::JourneyLoggerAndroid(bool is_incognito)
+ : journey_logger_(is_incognito) {}
JourneyLoggerAndroid::~JourneyLoggerAndroid() {}
@@ -95,8 +96,9 @@ void JourneyLoggerAndroid::RecordJourneyStatsHistograms(
}
static jlong InitJourneyLoggerAndroid(JNIEnv* env,
- const JavaParamRef<jobject>& jcaller) {
- return reinterpret_cast<jlong>(new JourneyLoggerAndroid());
+ const JavaParamRef<jobject>& jcaller,
+ jboolean jis_incognito) {
+ return reinterpret_cast<jlong>(new JourneyLoggerAndroid(jis_incognito));
}
} // namespace payments
« no previous file with comments | « components/payments/content/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