Index: chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java |
index 0f273251fcc1b5eef8babcc710f8911293d52c67..9423c6038a6d0d80970181be235062807afd97f1 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java |
@@ -815,6 +815,17 @@ public final class PrefServiceBridge { |
nativeFetchImportantSites(callback); |
} |
+ /** @return The maximum number of important sites that will be returned from the call above. */ |
+ public static int getMaxImportantSites() { |
+ return nativeGetMaxImportantSites(); |
+ } |
+ |
+ /** This lets us mark an origin as important for testing. */ |
+ @VisibleForTesting |
+ public static void markOriginAsImportantForTesting(String origin) { |
+ nativeMarkOriginAsImportantForTesting(origin); |
+ } |
+ |
/** |
* Requests that the web history service finds out if we should inform the user about the |
* existence of other forms of browsing history. The response will be asynchronous, through |
@@ -1147,6 +1158,8 @@ public final class PrefServiceBridge { |
OtherFormsOfBrowsingHistoryListener listener); |
private native boolean nativeCanDeleteBrowsingHistory(); |
private static native void nativeFetchImportantSites(ImportantSitesCallback callback); |
+ private static native int nativeGetMaxImportantSites(); |
+ private static native void nativeMarkOriginAsImportantForTesting(String origin); |
private native void nativeSetAutoplayEnabled(boolean allow); |
private native void nativeSetAllowCookiesEnabled(boolean allow); |
private native void nativeSetBackgroundSyncEnabled(boolean allow); |