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

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

Issue 2671743002: Separate state of basic and advanced tab in CBD dialog (Closed)
Patch Set: rebase and fix compilation 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/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferencesBasic.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferencesBasic.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferencesBasic.java
index 2a4cb11360a0f888742567ec3c0c3f1fa68d57d5..8241c0ac83ab6c5c76f28bb861042559ae87885d 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferencesBasic.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferencesBasic.java
@@ -4,6 +4,8 @@
package org.chromium.chrome.browser.preferences.privacy;
+import org.chromium.chrome.browser.browsing_data.ClearBrowsingDataTab;
+
/**
* A simpler version of {@link ClearBrowsingDataPreferences} with fewer dialog options and more
* explanatory text.
@@ -11,9 +13,12 @@ package org.chromium.chrome.browser.preferences.privacy;
public class ClearBrowsingDataPreferencesBasic extends ClearBrowsingDataPreferencesTab {
@Override
protected DialogOption[] getDialogOptions() {
- return new DialogOption[] {
- DialogOption.CLEAR_HISTORY, DialogOption.CLEAR_COOKIES_AND_SITE_DATA,
- DialogOption.CLEAR_CACHE
- };
+ return new DialogOption[] {DialogOption.CLEAR_HISTORY,
+ DialogOption.CLEAR_COOKIES_AND_SITE_DATA, DialogOption.CLEAR_CACHE};
+ }
+
+ @Override
+ protected int getPreferenceType() {
+ return ClearBrowsingDataTab.BASIC;
}
}

Powered by Google App Engine
This is Rietveld 408576698