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

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

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/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java
index def7a49fe00e39400f76608edbfa65d894b4af46..b30b08315f7d7373327c72413f3aa87d25234cb6 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java
@@ -727,6 +727,21 @@ public final class PrefServiceBridge {
}
/*
+ * Return the index of the tab last visited by the user in the CBD dialog.
msramek 2017/01/25 15:24:23 Java-doc please. The style dictates that public m
dullweber 2017/01/25 17:22:06 Done.
+ * Index 0 is for the basic tab, 1 is the advanced tab.
+ */
+ public int getLastSelectedClearBrowsingDataTab() {
+ return nativeGetLastClearBrowsingDataTab();
+ }
+
+ /*
+ * Set the index of the tab last visited by the user.
+ */
+ public void setLastSelectedClearBrowsingDataTab(int tabIndex) {
+ nativeSetLastClearBrowsingDataTab(tabIndex);
+ }
+
+ /*
* Whether browser history can be deleted by the user.
*/
public boolean canDeleteBrowsingHistory() {
@@ -1090,6 +1105,8 @@ public final class PrefServiceBridge {
private native void nativeClearBrowsingData(int[] dataTypes, int timePeriod,
String[] blacklistDomains, int[] blacklistedDomainReasons, String[] ignoredDomains,
int[] ignoredDomainReasons);
+ private native int nativeGetLastClearBrowsingDataTab();
+ private native void nativeSetLastClearBrowsingDataTab(int lastTab);
private native void nativeRequestInfoAboutOtherFormsOfBrowsingHistory(
OtherFormsOfBrowsingHistoryListener listener);
private native boolean nativeCanDeleteBrowsingHistory();

Powered by Google App Engine
This is Rietveld 408576698