Index: chrome/browser/browsing_data/hosted_apps_counter.h |
diff --git a/chrome/browser/browsing_data/hosted_apps_counter.h b/chrome/browser/browsing_data/hosted_apps_counter.h |
index 5e9bd4f56b3eed3c23cd868da5107c7cc80d471b..4f93ef8ae02baf78dddfda8a98285d0b6f0211b7 100644 |
--- a/chrome/browser/browsing_data/hosted_apps_counter.h |
+++ b/chrome/browser/browsing_data/hosted_apps_counter.h |
@@ -8,11 +8,13 @@ |
#include <vector> |
#include "base/macros.h" |
-#include "chrome/browser/browsing_data/browsing_data_counter.h" |
+#include "components/browsing_data/counters/browsing_data_counter.h" |
+ |
+class Profile; |
// A BrowsingDataCounter that returns the number of hosted apps and names |
// of up to two of them as examples. |
-class HostedAppsCounter: public BrowsingDataCounter { |
+class HostedAppsCounter : public browsing_data::BrowsingDataCounter { |
public: |
class HostedAppsResult : public FinishedResult { |
public: |
@@ -29,17 +31,14 @@ class HostedAppsCounter: public BrowsingDataCounter { |
DISALLOW_COPY_AND_ASSIGN(HostedAppsResult); |
}; |
- HostedAppsCounter(); |
+ explicit HostedAppsCounter(Profile* profile); |
~HostedAppsCounter() override; |
- // BrowsingDataCounter: |
- const std::string& GetPrefName() const override; |
- |
private: |
// BrowsingDataCounter: |
void Count() override; |
- const std::string pref_name_; |
+ Profile* profile_; |
DISALLOW_COPY_AND_ASSIGN(HostedAppsCounter); |
}; |