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..27fbc825a799f6c94c1926c735368c70eae1c4de 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,17 @@ public final class PrefServiceBridge { |
nativeFetchImportantSites(callback); |
} |
+ /** @return The maximum number of important sites that will be returend from the call above. */ |
Theresa
2016/05/13 06:02:30
s/returend/returned
dmurph
2016/05/13 23:46:23
Done.
|
+ public static int getMaxImportantSites() { |
+ return nativeGetMaxImportantSites(); |
+ } |
+ |
+ /** This lets us mark an origin as important for testing. */ |
+ @VisibleForTesting |
+ public static void markOriginAsImportant(String origin) { |
Theresa
2016/05/13 06:02:30
nit: markOriginAsImportantForTesting() (so that it
dmurph
2016/05/13 23:46:23
Done.
|
+ nativeMarkOriginAsImportant(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 |
@@ -1127,6 +1138,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 nativeMarkOriginAsImportant(String origin); |
private native void nativeSetAutoplayEnabled(boolean allow); |
private native void nativeSetAllowCookiesEnabled(boolean allow); |
private native void nativeSetBackgroundSyncEnabled(boolean allow); |