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

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: 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
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..1722110318785d5b1e5f1449c53de6ebeb81ac50 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
@@ -726,8 +726,24 @@ public final class PrefServiceBridge {
ignoredDomains, ignoredDomainReasons);
}
- /*
- * Whether browser history can be deleted by the user.
+ /**
+ * @return The index of the tab last visited by the user in the CBD dialog.
+ * 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.
+ * @param tabIndex The last visited tab index, 0 for basic, 1 for advanced.
+ */
+ public void setLastSelectedClearBrowsingDataTab(int tabIndex) {
+ nativeSetLastClearBrowsingDataTab(tabIndex);
+ }
+
+ /**
+ * @return Whether browser history can be deleted by the user.
*/
public boolean canDeleteBrowsingHistory() {
return nativeCanDeleteBrowsingHistory();
@@ -1090,6 +1106,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