Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(354)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/BrowsingDataCounterBridge.java

Issue 2671743002: Separate state of basic and advanced tab in CBD dialog (Closed)
Patch Set: fix .classpath file Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698