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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsBridge.java

Issue 2790183002: Add UMA for the content suggestions settings (Closed)
Patch Set: address comments and rebase 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: chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsBridge.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsBridge.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsBridge.java
index 01f9c8d568d2f9e5bb1f0414ad2c3d57e60910d3..d1ef227950a2a598f09cb4512a56f7cbc3e02b42 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsBridge.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsBridge.java
@@ -88,20 +88,20 @@ public static void fetchRemoteSuggestionsFromBackground() {
nativeRemoteSuggestionsSchedulerOnFetchDue();
}
- public static void setRemoteSuggestionsServiceEnabled(boolean enabled) {
- nativeSetRemoteSuggestionsServiceEnabled(enabled);
+ public static void setRemoteSuggestionsEnabled(boolean enabled) {
+ nativeSetRemoteSuggestionsEnabled(enabled);
}
- public static boolean isRemoteSuggestionsServiceEnabled() {
- return nativeIsRemoteSuggestionsServiceEnabled();
+ public static boolean areRemoteSuggestionsEnabled() {
+ return nativeAreRemoteSuggestionsEnabled();
}
- public static boolean isRemoteSuggestionsServiceManaged() {
- return nativeIsRemoteSuggestionsServiceManaged();
+ public static boolean areRemoteSuggestionsManaged() {
+ return nativeAreRemoteSuggestionsManaged();
}
- public static boolean isRemoteSuggestionsServiceManagedByCustodian() {
- return nativeIsRemoteSuggestionsServiceManagedByCustodian();
+ public static boolean areRemoteSuggestionsManagedByCustodian() {
+ return nativeAreRemoteSuggestionsManagedByCustodian();
}
public static void setContentSuggestionsNotificationsEnabled(boolean enabled) {
@@ -361,10 +361,10 @@ private void onFullRefreshRequired() {
private native void nativeReloadSuggestions(long nativeNTPSnippetsBridge);
private static native void nativeRemoteSuggestionsSchedulerOnFetchDue();
private static native void nativeRemoteSuggestionsSchedulerRescheduleFetching();
- private static native void nativeSetRemoteSuggestionsServiceEnabled(boolean enabled);
- private static native boolean nativeIsRemoteSuggestionsServiceEnabled();
- private static native boolean nativeIsRemoteSuggestionsServiceManaged();
- private static native boolean nativeIsRemoteSuggestionsServiceManagedByCustodian();
+ private static native void nativeSetRemoteSuggestionsEnabled(boolean enabled);
+ private static native boolean nativeAreRemoteSuggestionsEnabled();
+ private static native boolean nativeAreRemoteSuggestionsManaged();
+ private static native boolean nativeAreRemoteSuggestionsManagedByCustodian();
private static native void nativeSetContentSuggestionsNotificationsEnabled(boolean enabled);
private static native boolean nativeAreContentSuggestionsNotificationsEnabled();
private native int[] nativeGetCategories(long nativeNTPSnippetsBridge);

Powered by Google App Engine
This is Rietveld 408576698