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

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

Issue 2756173002: Move code about browsing data from PrefServiceBridge to BrowsingDataBridge. (Closed)
Patch Set: fix comments 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java
index 94ea61d6a6660d66523e4a4bf7b810ee78ff3f03..666f185f26db80ba7fa32b5e0d28ad6f0b0e9402 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java
@@ -47,9 +47,9 @@ import java.util.EnumSet;
* from which to clear data.
*/
public class ClearBrowsingDataPreferences extends PreferenceFragment
- implements PrefServiceBridge.ImportantSitesCallback,
- PrefServiceBridge.OnClearBrowsingDataListener,
- PrefServiceBridge.OtherFormsOfBrowsingHistoryListener,
+ implements BrowsingDataBridge.ImportantSitesCallback,
+ BrowsingDataBridge.OnClearBrowsingDataListener,
+ BrowsingDataBridge.OtherFormsOfBrowsingHistoryListener,
Preference.OnPreferenceClickListener, Preference.OnPreferenceChangeListener {
/**
* Represents a single item in the dialog.
@@ -314,11 +314,11 @@ public class ClearBrowsingDataPreferences extends PreferenceFragment
((SpinnerPreference) findPreference(PREF_TIME_RANGE)).getSelectedOption();
int timePeriod = ((TimePeriodSpinnerOption) spinnerSelection).getTimePeriod();
if (blacklistedDomains != null && blacklistedDomains.length != 0) {
- PrefServiceBridge.getInstance().clearBrowsingDataExcludingDomains(this, dataTypes,
+ BrowsingDataBridge.getInstance().clearBrowsingDataExcludingDomains(this, dataTypes,
timePeriod, blacklistedDomains, blacklistedDomainReasons, ignoredDomains,
ignoredDomainReasons);
} else {
- PrefServiceBridge.getInstance().clearBrowsingData(this, dataTypes, timePeriod);
+ BrowsingDataBridge.getInstance().clearBrowsingData(this, dataTypes, timePeriod);
}
// Clear all reported entities.
@@ -499,8 +499,8 @@ public class ClearBrowsingDataPreferences extends PreferenceFragment
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
RecordUserAction.record("ClearBrowsingData_DialogCreated");
- mMaxImportantSites = PrefServiceBridge.getMaxImportantSites();
- PrefServiceBridge.getInstance().requestInfoAboutOtherFormsOfBrowsingHistory(this);
+ mMaxImportantSites = BrowsingDataBridge.getMaxImportantSites();
+ BrowsingDataBridge.getInstance().requestInfoAboutOtherFormsOfBrowsingHistory(this);
getActivity().setTitle(R.string.clear_browsing_data_title);
addPreferencesFromResource(getPreferenceXmlId());
DialogOption[] options = getDialogOptions();
@@ -556,7 +556,7 @@ public class ClearBrowsingDataPreferences extends PreferenceFragment
initFootnote();
if (ChromeFeatureList.isEnabled(ChromeFeatureList.IMPORTANT_SITES_IN_CBD)) {
- PrefServiceBridge.fetchImportantSites(this);
+ BrowsingDataBridge.fetchImportantSites(this);
}
}

Powered by Google App Engine
This is Rietveld 408576698