Index: chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/BrowsingDataCounterBridge.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/BrowsingDataCounterBridge.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/BrowsingDataCounterBridge.java |
index a5afb735152e5d8aa83e449b3b35444a73efbbb6..5042a3b2c10b4a9f5e39f1d467ac787c1aa46a8c 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/BrowsingDataCounterBridge.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/BrowsingDataCounterBridge.java |
@@ -29,11 +29,13 @@ public class BrowsingDataCounterBridge { |
* Initializes BrowsingDataCounterBridge. |
* @param callback A callback to call with the result when the counter finishes. |
* @param dataType The browsing data type to be counted (from the shared enum |
- * {@link org.chromium.chrome.browser.browsing_data.BrowsingDataType}). |
+ * @param prefType The type of preference that should be handled (Default, Basic or Advanced |
+ * from {@link org.chromium.chrome.browser.browsing_data.ClearBrowsingDataTab}). |
*/ |
- public BrowsingDataCounterBridge(BrowsingDataCounterCallback callback, int dataType) { |
+ public BrowsingDataCounterBridge( |
+ BrowsingDataCounterCallback callback, int dataType, int prefType) { |
mCallback = callback; |
- mNativeBrowsingDataCounterBridge = nativeInit(dataType); |
+ mNativeBrowsingDataCounterBridge = nativeInit(dataType, prefType); |
} |
/** |
@@ -51,6 +53,6 @@ public class BrowsingDataCounterBridge { |
mCallback.onCounterFinished(result); |
} |
- private native long nativeInit(int dataType); |
+ private native long nativeInit(int dataType, int prefType); |
private native void nativeDestroy(long nativeBrowsingDataCounterBridge); |
} |