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

Unified Diff: chrome/browser/browsing_data/browsing_data_counter_utils.cc

Issue 2121203002: Add BrowsingDataCounterFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_bd_counters_to_components
Patch Set: Fixed Android code Created 4 years, 5 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/browser/browsing_data/browsing_data_counter_utils.cc
diff --git a/chrome/browser/browsing_data/browsing_data_counter_utils.cc b/chrome/browser/browsing_data/browsing_data_counter_utils.cc
index 16354972102eb65d5fc6b7fc7b7076c33a50002e..9e855e60893fabe4fc7ad0029c5ee751ba9ef04a 100644
--- a/chrome/browser/browsing_data/browsing_data_counter_utils.cc
+++ b/chrome/browser/browsing_data/browsing_data_counter_utils.cc
@@ -261,21 +261,3 @@ bool GetDeletionPreferenceFromDataType(
NOTREACHED();
return false;
}
-
-browsing_data::BrowsingDataCounter* CreateCounterForPreference(
- std::string pref_name,
- Profile* profile) {
- if (!AreCountersEnabled())
- return nullptr;
-
- if (pref_name == prefs::kDeleteBrowsingHistory)
- return new HistoryCounter(profile);
- if (pref_name == prefs::kDeleteCache)
- return new CacheCounter(profile);
- if (pref_name == prefs::kDeletePasswords)
- return new PasswordsCounter(profile);
- if (pref_name == prefs::kDeleteFormData)
- return new AutofillCounter(profile);
-
- return nullptr;
-}

Powered by Google App Engine
This is Rietveld 408576698