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

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: fix .classpath file 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..ec1fd071576e7ff0091e71aaff37480dd84c8d51 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.ClearBrowsingDataPreferenceType;
+
/**
* 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 ClearBrowsingDataPreferenceType.BASIC;
}
}

Powered by Google App Engine
This is Rietveld 408576698