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 faff43e8edccc80c3b32112da20a97ade07c4d57..e23462bad2c4f37a36c9f60edf73688cf159acd9 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 |
@@ -794,6 +794,11 @@ public final class PrefServiceBridge { |
nativeFetchImportantSites(callback); |
} |
+ /** @return The maximum number of important sites that will be returend from the call above. */ |
+ public static int getMaxImportantSites() { |
+ return nativeGetMaxImportantSites(); |
+ } |
+ |
/** |
* 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 |
@@ -1100,6 +1105,7 @@ public final class PrefServiceBridge { |
OtherFormsOfBrowsingHistoryListener listener); |
private native boolean nativeCanDeleteBrowsingHistory(); |
private static native void nativeFetchImportantSites(ImportantSitesCallback callback); |
+ private static native int nativeGetMaxImportantSites(); |
private native void nativeSetAllowCookiesEnabled(boolean allow); |
private native void nativeSetBackgroundSyncEnabled(boolean allow); |
private native void nativeSetBlockThirdPartyCookiesEnabled(boolean enabled); |