Index: components/browsing_data/core/counters/browsing_data_counter.h |
diff --git a/components/browsing_data/core/counters/browsing_data_counter.h b/components/browsing_data/core/counters/browsing_data_counter.h |
index 5ef123945db9a5feaff42b95aae91ab6e467dc6d..7a6c0b4b268714c30dbfd4faace49e36f9e11999 100644 |
--- a/components/browsing_data/core/counters/browsing_data_counter.h |
+++ b/components/browsing_data/core/counters/browsing_data_counter.h |
@@ -58,14 +58,14 @@ class BrowsingDataCounter { |
typedef base::Callback<void(std::unique_ptr<Result>)> Callback; |
- BrowsingDataCounter(const std::string& pref_name); |
+ BrowsingDataCounter(); |
virtual ~BrowsingDataCounter(); |
// Should be called once to initialize this class. |
void Init(PrefService* pref_service, const Callback& callback); |
// Name of the preference associated with this counter. |
- const std::string& GetPrefName() const; |
+ virtual const std::string& GetPrefName() const = 0; |
// PrefService that manages the preferences for the user profile |
// associated with this counter. |
@@ -95,9 +95,6 @@ class BrowsingDataCounter { |
// Count the data. |
virtual void Count() = 0; |
- // Name of the preference associated with this counter. |
- const std::string pref_name_; |
- |
// Pointer to the PrefService that manages the preferences for the user |
// profile associated with this counter. |
PrefService* pref_service_; |