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

Unified Diff: chrome/browser/android/browsing_data/browsing_data_counter_bridge.h

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/browser/android/browsing_data/browsing_data_counter_bridge.h
diff --git a/chrome/browser/android/browsing_data/browsing_data_counter_bridge.h b/chrome/browser/android/browsing_data/browsing_data_counter_bridge.h
index 6c55f58abdef9a83653531dc14f17bd56b1dac39..a669077d98d04f3bdaf82fb721c6e878e3916c95 100644
--- a/chrome/browser/android/browsing_data/browsing_data_counter_bridge.h
+++ b/chrome/browser/android/browsing_data/browsing_data_counter_bridge.h
@@ -7,6 +7,7 @@
#include "base/android/jni_weak_ref.h"
#include "base/android/scoped_java_ref.h"
+#include "components/browsing_data/core/browsing_data_utils.h"
#include "components/browsing_data/core/counters/browsing_data_counter.h"
// This class is a wrapper for BrowsingDataCounter (C++ backend) to be used by
@@ -15,10 +16,10 @@ class BrowsingDataCounterBridge {
public:
// Creates a BrowsingDataCounterBridge for a certain browsing data type.
// The |data_type| is a value of the enum BrowsingDataType.
- BrowsingDataCounterBridge(
- JNIEnv* env,
- const base::android::JavaParamRef<jobject>& obj,
- jint data_type);
+ BrowsingDataCounterBridge(JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& obj,
+ jint data_type,
+ jint pref_type);
~BrowsingDataCounterBridge();
@@ -33,6 +34,7 @@ class BrowsingDataCounterBridge {
base::android::ScopedJavaGlobalRef<jobject> jobject_;
std::unique_ptr<browsing_data::BrowsingDataCounter> counter_;
+ browsing_data::ClearBrowsingDataPreferenceType pref_type_;
DISALLOW_COPY_AND_ASSIGN(BrowsingDataCounterBridge);
};

Powered by Google App Engine
This is Rietveld 408576698