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

Unified Diff: chrome/browser/browsing_data/autofill_counter.h

Issue 2084903002: Moved BrowsingDataCounter and part of BrowsingDataCounterUtils to components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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/autofill_counter.h
diff --git a/chrome/browser/browsing_data/autofill_counter.h b/chrome/browser/browsing_data/autofill_counter.h
index 5072dd92f32dc816c4b7b6d31d7633ef6b1a5950..25e18adee522816afbad5aee9920034a4060ea8a 100644
--- a/chrome/browser/browsing_data/autofill_counter.h
+++ b/chrome/browser/browsing_data/autofill_counter.h
@@ -8,15 +8,17 @@
#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 "components/browsing_data/counters/browsing_data_counter.h"
#include "components/webdata/common/web_data_service_consumer.h"
+class Profile;
+
namespace autofill {
class AutofillWebDataService;
}
-class AutofillCounter: public BrowsingDataCounter,
- public WebDataServiceConsumer {
+class AutofillCounter : public browsing_data::BrowsingDataCounter,
+ public WebDataServiceConsumer {
public:
class AutofillResult : public FinishedResult {
public:
@@ -36,12 +38,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 +58,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_;
« no previous file with comments | « chrome/browser/android/preferences/pref_service_bridge.cc ('k') | chrome/browser/browsing_data/autofill_counter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698