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

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

Issue 2646313005: Implement additional parts of the new ui for CBD. (Closed)
Patch Set: remove linearlayout 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
« no previous file with comments | « chrome/android/java_sources.gni ('k') | components/browsing_data/core/pref_names.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..1648ab1187c5a89c07fb8b2e265b98157d8e6499 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_LT(tab_index, 2);
+ GetPrefService()->SetInteger(browsing_data::prefs::kLastClearBrowsingDataTab,
+ tab_index);
+}
+
static void ClearBrowsingData(
JNIEnv* env,
const JavaParamRef<jobject>& obj,
« no previous file with comments | « chrome/android/java_sources.gni ('k') | components/browsing_data/core/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698