| 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 9625196e171073a9d2f6dac58c396fac93bc01f3..0d71c3e494c94b2fee90df327e3451c9e06efd8a 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
|
| @@ -801,6 +801,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
|
| @@ -1127,6 +1132,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 nativeSetAutoplayEnabled(boolean allow);
|
| private native void nativeSetAllowCookiesEnabled(boolean allow);
|
| private native void nativeSetBackgroundSyncEnabled(boolean allow);
|
|
|