Index: chrome/browser/browsing_data/passwords_counter.h |
diff --git a/chrome/browser/browsing_data/passwords_counter.h b/chrome/browser/browsing_data/passwords_counter.h |
index 85ed1e6a31a2ceb3fcca6b89b6ee4d028c869715..10c404d1042ad0444c8a8d6ebd739e06e82a67b4 100644 |
--- a/chrome/browser/browsing_data/passwords_counter.h |
+++ b/chrome/browser/browsing_data/passwords_counter.h |
@@ -5,7 +5,8 @@ |
#ifndef CHROME_BROWSER_BROWSING_DATA_PASSWORDS_COUNTER_H_ |
#define CHROME_BROWSER_BROWSING_DATA_PASSWORDS_COUNTER_H_ |
-#include "chrome/browser/browsing_data/browsing_data_counter.h" |
+#include "chrome/browser/profiles/profile.h" |
msramek
2016/06/21 14:43:56
As mentioned elsewhere, Profile should be forward-
ioanap
2016/06/23 14:56:27
Done.
|
+#include "components/browsing_data/counters/browsing_data_counter.h" |
#include "components/password_manager/core/browser/password_store.h" |
#include "components/password_manager/core/browser/password_store_consumer.h" |
@@ -13,16 +14,15 @@ class PasswordsCounter: public BrowsingDataCounter, |
public password_manager::PasswordStoreConsumer, |
public password_manager::PasswordStore::Observer { |
public: |
- PasswordsCounter(); |
+ explicit PasswordsCounter(Profile* profile_); |
~PasswordsCounter() override; |
- const std::string& GetPrefName() const override; |
- |
private: |
- const std::string pref_name_; |
base::CancelableTaskTracker cancelable_task_tracker_; |
password_manager::PasswordStore* store_ = nullptr; |
+ Profile* profile_; |
+ |
void OnInitialized() override; |
// Counting is done asynchronously in a request to PasswordStore. |