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

Unified Diff: chrome/browser/android/preferences/pref_service_bridge.cc

Issue 2096363003: [ImportantSites] Adding usage metrics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Switched percent to be out of 20 Created 4 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
Index: chrome/browser/android/preferences/pref_service_bridge.cc
diff --git a/chrome/browser/android/preferences/pref_service_bridge.cc b/chrome/browser/android/preferences/pref_service_bridge.cc
index 44aaeb0e8dbd33e9d4cc96494c285f489ec4aa7f..30c2463d7173200e1b177f287cacff5bf21ff84c 100644
--- a/chrome/browser/android/preferences/pref_service_bridge.cc
+++ b/chrome/browser/android/preferences/pref_service_bridge.cc
@@ -71,6 +71,7 @@ using base::android::ScopedJavaGlobalRef;
using content::BrowserThread;
namespace {
+
const size_t kMaxImportantSites = 5;
Profile* GetOriginalProfile() {
@@ -683,6 +684,7 @@ static void FetchImportantSites(JNIEnv* env,
env, java_callback.obj(), java_domains.obj(), java_origins.obj());
}
+// This value should not change during a sessions, as it's used for UMA metrics.
static jint GetMaxImportantSites(JNIEnv* env,
const JavaParamRef<jclass>& clazz) {
return kMaxImportantSites;

Powered by Google App Engine
This is Rietveld 408576698