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

Side by Side Diff: components/payments/content/android/journey_logger_android.h

Issue 2790253002: [Payments] Don't record CanMakePayment when in incognito mode. (Closed)
Patch Set: Nit 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
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 #ifndef COMPONENTS_PAYMENTS_CONTENT_ANDROID_JOURNEY_LOGGER_ANDROID_H_ 5 #ifndef COMPONENTS_PAYMENTS_CONTENT_ANDROID_JOURNEY_LOGGER_ANDROID_H_
6 #define COMPONENTS_PAYMENTS_CONTENT_ANDROID_JOURNEY_LOGGER_ANDROID_H_ 6 #define COMPONENTS_PAYMENTS_CONTENT_ANDROID_JOURNEY_LOGGER_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "components/payments/core/journey_logger.h" 12 #include "components/payments/core/journey_logger.h"
13 13
14 namespace payments { 14 namespace payments {
15 15
16 // Forwarding calls to payments::JourneyLogger. 16 // Forwarding calls to payments::JourneyLogger.
17 class JourneyLoggerAndroid { 17 class JourneyLoggerAndroid {
18 public: 18 public:
19 // Registers the JNI bindings for this class. 19 // Registers the JNI bindings for this class.
20 static bool Register(JNIEnv* env); 20 static bool Register(JNIEnv* env);
21 21
22 JourneyLoggerAndroid(); 22 JourneyLoggerAndroid(bool is_incognito);
please use gerrit instead 2017/04/04 15:27:35 explicit
sebsg 2017/04/04 15:50:37 Done.
23 ~JourneyLoggerAndroid(); 23 ~JourneyLoggerAndroid();
24 24
25 // Message from Java to destroy this object. 25 // Message from Java to destroy this object.
26 void Destroy(JNIEnv* env, 26 void Destroy(JNIEnv* env,
27 const base::android::JavaParamRef<jobject>& jcaller); 27 const base::android::JavaParamRef<jobject>& jcaller);
28 28
29 void SetNumberOfSuggestionsShown( 29 void SetNumberOfSuggestionsShown(
30 JNIEnv* env, 30 JNIEnv* env,
31 const base::android::JavaParamRef<jobject>& jcaller, 31 const base::android::JavaParamRef<jobject>& jcaller,
32 jint jsection, 32 jint jsection,
(...skipping 23 matching lines...) Expand all
56 56
57 private: 57 private:
58 JourneyLogger journey_logger_; 58 JourneyLogger journey_logger_;
59 59
60 DISALLOW_COPY_AND_ASSIGN(JourneyLoggerAndroid); 60 DISALLOW_COPY_AND_ASSIGN(JourneyLoggerAndroid);
61 }; 61 };
62 62
63 } // namespace payments 63 } // namespace payments
64 64
65 #endif // COMPONENTS_PAYMENTS_CONTENT_ANDROID_JOURNEY_LOGGER_ANDROID_H_ 65 #endif // COMPONENTS_PAYMENTS_CONTENT_ANDROID_JOURNEY_LOGGER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698