OLD | NEW |
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 } |
OLD | NEW |