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..9fec343508383c82f2acb1bcb7dab27b9ccad176 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.ClearBrowsingDataPreferenceType}). |
*/ |
- 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); |
} |