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

Unified Diff: chrome/browser/engagement/site_engagement_service_android.cc

Issue 2748103011: Grant origins engagement for having interactions on their notifications. (Closed)
Patch Set: 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: chrome/browser/engagement/site_engagement_service_android.cc
diff --git a/chrome/browser/engagement/site_engagement_service_android.cc b/chrome/browser/engagement/site_engagement_service_android.cc
index 75308dbe2bb0ed9935c6ba41163b7fbb61091504..02ead89f12d0bc87cc3dd47ce07eac220bf3d55c 100644
--- a/chrome/browser/engagement/site_engagement_service_android.cc
+++ b/chrome/browser/engagement/site_engagement_service_android.cc
@@ -7,6 +7,7 @@
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
#include "base/memory/ptr_util.h"
+#include "chrome/browser/engagement/site_engagement_score.h"
#include "chrome/browser/profiles/profile_android.h"
#include "jni/SiteEngagementService_jni.h"
#include "url/gurl.h"
@@ -68,6 +69,10 @@ void SiteEngagementServiceAndroid::ResetBaseScoreForURL(
}
}
+void SetParamValuesForTesting(JNIEnv* env, const JavaParamRef<jclass>& clazz) {
+ SiteEngagementScore::SetParamValuesForTesting();
+}
+
base::android::ScopedJavaLocalRef<jobject> SiteEngagementServiceForProfile(
JNIEnv* env,
const JavaParamRef<jclass>& clazz,

Powered by Google App Engine
This is Rietveld 408576698