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

Side by Side 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, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.preferences.privacy; 5 package org.chromium.chrome.browser.preferences.privacy;
6 6
7 import org.chromium.chrome.browser.browsing_data.ClearBrowsingDataTab;
8
7 /** 9 /**
8 * A simpler version of {@link ClearBrowsingDataPreferences} with fewer dialog o ptions and more 10 * A simpler version of {@link ClearBrowsingDataPreferences} with fewer dialog o ptions and more
9 * explanatory text. 11 * explanatory text.
10 */ 12 */
11 public class ClearBrowsingDataPreferencesBasic extends ClearBrowsingDataPreferen cesTab { 13 public class ClearBrowsingDataPreferencesBasic extends ClearBrowsingDataPreferen cesTab {
12 @Override 14 @Override
13 protected DialogOption[] getDialogOptions() { 15 protected DialogOption[] getDialogOptions() {
14 return new DialogOption[] { 16 return new DialogOption[] {DialogOption.CLEAR_HISTORY,
15 DialogOption.CLEAR_HISTORY, DialogOption.CLEAR_COOKIES_AND_SITE_ DATA, 17 DialogOption.CLEAR_COOKIES_AND_SITE_DATA, DialogOption.CLEAR_CAC HE};
16 DialogOption.CLEAR_CACHE 18 }
17 }; 19
20 @Override
21 protected int getPreferenceType() {
22 return ClearBrowsingDataTab.BASIC;
18 } 23 }
19 } 24 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698