OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 android.app.Activity; | 7 import android.app.Activity; |
8 import android.app.ProgressDialog; | 8 import android.app.ProgressDialog; |
9 import android.content.Intent; | 9 import android.content.Intent; |
10 import android.os.Bundle; | 10 import android.os.Bundle; |
(...skipping 12 matching lines...) Expand all Loading... |
23 import org.chromium.chrome.browser.help.HelpAndFeedback; | 23 import org.chromium.chrome.browser.help.HelpAndFeedback; |
24 import org.chromium.chrome.browser.preferences.ButtonPreference; | 24 import org.chromium.chrome.browser.preferences.ButtonPreference; |
25 import org.chromium.chrome.browser.preferences.ClearBrowsingDataCheckBoxPreferen
ce; | 25 import org.chromium.chrome.browser.preferences.ClearBrowsingDataCheckBoxPreferen
ce; |
26 import org.chromium.chrome.browser.preferences.PrefServiceBridge; | 26 import org.chromium.chrome.browser.preferences.PrefServiceBridge; |
27 import org.chromium.chrome.browser.preferences.SpinnerPreference; | 27 import org.chromium.chrome.browser.preferences.SpinnerPreference; |
28 import org.chromium.chrome.browser.preferences.TextMessageWithLinkAndIconPrefere
nce; | 28 import org.chromium.chrome.browser.preferences.TextMessageWithLinkAndIconPrefere
nce; |
29 import org.chromium.chrome.browser.preferences.privacy.BrowsingDataCounterBridge
.BrowsingDataCounterCallback; | 29 import org.chromium.chrome.browser.preferences.privacy.BrowsingDataCounterBridge
.BrowsingDataCounterCallback; |
30 import org.chromium.chrome.browser.profiles.Profile; | 30 import org.chromium.chrome.browser.profiles.Profile; |
31 import org.chromium.chrome.browser.tabmodel.TabModel.TabLaunchType; | 31 import org.chromium.chrome.browser.tabmodel.TabModel.TabLaunchType; |
32 import org.chromium.chrome.browser.tabmodel.document.TabDelegate; | 32 import org.chromium.chrome.browser.tabmodel.document.TabDelegate; |
33 import org.chromium.sync.signin.ChromeSigninController; | 33 import org.chromium.components.sync.signin.ChromeSigninController; |
34 | 34 |
35 import java.util.Arrays; | 35 import java.util.Arrays; |
36 import java.util.EnumSet; | 36 import java.util.EnumSet; |
37 | 37 |
38 /** | 38 /** |
39 * Preference screen that allows the user to clear browsing data. | 39 * Preference screen that allows the user to clear browsing data. |
40 * The user can choose which types of data to clear (history, cookies, etc), and
the time range | 40 * The user can choose which types of data to clear (history, cookies, etc), and
the time range |
41 * from which to clear data. | 41 * from which to clear data. |
42 */ | 42 */ |
43 public class ClearBrowsingDataPreferences extends PreferenceFragment | 43 public class ClearBrowsingDataPreferences extends PreferenceFragment |
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 RecordHistogram.recordEnumeratedHistogram( | 608 RecordHistogram.recordEnumeratedHistogram( |
609 "History.ClearBrowsingData.ImportantDeselectedPercent", | 609 "History.ClearBrowsingData.ImportantDeselectedPercent", |
610 deselectedDomains.length * IMPORTANT_SITES_PERCENTAGE_BU
CKET_COUNT | 610 deselectedDomains.length * IMPORTANT_SITES_PERCENTAGE_BU
CKET_COUNT |
611 / mSortedImportantDomains.length, | 611 / mSortedImportantDomains.length, |
612 IMPORTANT_SITES_PERCENTAGE_BUCKET_COUNT + 1); | 612 IMPORTANT_SITES_PERCENTAGE_BUCKET_COUNT + 1); |
613 } | 613 } |
614 clearBrowsingData(getSelectedOptions(), deselectedDomains); | 614 clearBrowsingData(getSelectedOptions(), deselectedDomains); |
615 } | 615 } |
616 } | 616 } |
617 } | 617 } |
OLD | NEW |