Index: chrome/browser/browsing_data/autofill_counter.h |
diff --git a/chrome/browser/browsing_data/autofill_counter.h b/chrome/browser/browsing_data/autofill_counter.h |
index 5072dd92f32dc816c4b7b6d31d7633ef6b1a5950..3ee12063dd9903ce625dab5463c266dd74d626bf 100644 |
--- a/chrome/browser/browsing_data/autofill_counter.h |
+++ b/chrome/browser/browsing_data/autofill_counter.h |
@@ -8,7 +8,8 @@ |
#include "base/macros.h" |
#include "base/threading/thread_checker.h" |
#include "base/time/time.h" |
-#include "chrome/browser/browsing_data/browsing_data_counter.h" |
+#include "chrome/browser/profiles/profile.h" |
+#include "components/browsing_data/counters/browsing_data_counter.h" |
#include "components/webdata/common/web_data_service_consumer.h" |
namespace autofill { |
@@ -36,12 +37,11 @@ class AutofillCounter: public BrowsingDataCounter, |
DISALLOW_COPY_AND_ASSIGN(AutofillResult); |
}; |
- AutofillCounter(); |
+ explicit AutofillCounter(Profile* profile); |
~AutofillCounter() override; |
// BrowsingDataCounter implementation. |
void OnInitialized() override; |
- const std::string& GetPrefName() const override; |
// Whether the counting is in progress. |
bool HasPendingQuery() { |
@@ -57,7 +57,7 @@ class AutofillCounter: public BrowsingDataCounter, |
void SetPeriodStartForTesting(const base::Time& period_start_for_testing); |
private: |
- const std::string pref_name_; |
+ Profile* profile_; |
base::ThreadChecker thread_checker_; |
scoped_refptr<autofill::AutofillWebDataService> web_data_service_; |