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

Unified Diff: chrome/browser/browsing_data/passwords_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: Fixed deps Created 4 years, 6 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/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.

Powered by Google App Engine
This is Rietveld 408576698