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

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

Issue 2790253002: [Payments] Don't record CanMakePayment when in incognito mode. (Closed)
Patch Set: Pass in constructor Created 3 years, 9 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..91e10638ef13531e8487f87ec160be03018b0726 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 jisIncognito) {
Mathieu 2017/04/03 21:05:53 jis_incognito
+ return reinterpret_cast<jlong>(new JourneyLoggerAndroid(jisIncognito));
}
} // 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