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

Unified Diff: chrome/browser/android/preferences/pref_service_bridge.cc

Issue 2646313005: Implement additional parts of the new ui for CBD. (Closed)
Patch Set: Created 3 years, 11 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/preferences/pref_service_bridge.cc
diff --git a/chrome/browser/android/preferences/pref_service_bridge.cc b/chrome/browser/android/preferences/pref_service_bridge.cc
index 7f50a0bdeca2b85fc637aabfd633a25f9fdc0fcd..5b5a92864eab7c1801721595721a9eb5e5d17c58 100644
--- a/chrome/browser/android/preferences/pref_service_bridge.cc
+++ b/chrome/browser/android/preferences/pref_service_bridge.cc
@@ -589,6 +589,21 @@ static void SetBrowsingDataDeletionTimePeriod(
time_period);
}
+static jint GetLastClearBrowsingDataTab(JNIEnv* env,
+ const JavaParamRef<jobject>& obj) {
+ return GetPrefService()->GetInteger(
+ browsing_data::prefs::kLastClearBrowsingDataTab);
+}
+
+static void SetLastClearBrowsingDataTab(JNIEnv* env,
+ const JavaParamRef<jobject>& obj,
+ jint tab_index) {
+ DCHECK_GE(tab_index, 0);
+ DCHECK_LE(tab_index, 1);
msramek 2017/01/25 15:24:23 nit: I would prefer <2 rather than <=1. We cannot
dullweber 2017/01/25 17:22:06 Done.
+ GetPrefService()->SetInteger(browsing_data::prefs::kLastClearBrowsingDataTab,
+ tab_index);
+}
+
static void ClearBrowsingData(
JNIEnv* env,
const JavaParamRef<jobject>& obj,

Powered by Google App Engine
This is Rietveld 408576698