| Index: chrome/browser/browsing_data/hosted_apps_counter.cc
|
| diff --git a/chrome/browser/browsing_data/hosted_apps_counter.cc b/chrome/browser/browsing_data/hosted_apps_counter.cc
|
| index 4904ca83eeb74fd4e42d017f22a11e199cf4e2c0..320591061b41f30c5a345fcfff38e5bb28b8c98e 100644
|
| --- a/chrome/browser/browsing_data/hosted_apps_counter.cc
|
| +++ b/chrome/browser/browsing_data/hosted_apps_counter.cc
|
| @@ -12,21 +12,17 @@
|
| #include "extensions/browser/extension_registry.h"
|
| #include "extensions/common/extension.h"
|
|
|
| -HostedAppsCounter::HostedAppsCounter()
|
| - : pref_name_(prefs::kDeleteHostedAppsData) {}
|
| +HostedAppsCounter::HostedAppsCounter(Profile* profile)
|
| + : BrowsingDataCounter(prefs::kDeleteHostedAppsData), profile_(profile) {}
|
|
|
| HostedAppsCounter::~HostedAppsCounter() {}
|
|
|
| -const std::string& HostedAppsCounter::GetPrefName() const {
|
| - return pref_name_;
|
| -}
|
| -
|
| void HostedAppsCounter::Count() {
|
| int count = 0;
|
| std::vector<std::string> names;
|
|
|
| std::unique_ptr<extensions::ExtensionSet> extensions =
|
| - extensions::ExtensionRegistry::Get(GetProfile())
|
| + extensions::ExtensionRegistry::Get(profile_)
|
| ->GenerateInstalledExtensionsSet();
|
|
|
| for (const auto& extension : *extensions) {
|
|
|