#include "chrome/browser/ui/safety_hub/unused_site_permissions_service_factory.h"
#include "base/feature_list.h"
#include "base/no_destructor.h"
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/safety_hub/unused_site_permissions_service.h"
#include "chrome/common/chrome_features.h"
#include "components/prefs/pref_service.h"
#include "components/safe_browsing/core/common/features.h"
UnusedSitePermissionsServiceFactory*
UnusedSitePermissionsServiceFactory::GetInstance() { … }
UnusedSitePermissionsService*
UnusedSitePermissionsServiceFactory::GetForProfile(Profile* profile) { … }
UnusedSitePermissionsServiceFactory::UnusedSitePermissionsServiceFactory()
: … { … }
UnusedSitePermissionsServiceFactory::~UnusedSitePermissionsServiceFactory() =
default;
KeyedService* UnusedSitePermissionsServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const { … }
#if BUILDFLAG(IS_ANDROID)
bool UnusedSitePermissionsServiceFactory::ServiceIsCreatedWithBrowserContext()
const {
return base::FeatureList::IsEnabled(features::kSafetyHub) ||
base::FeatureList::IsEnabled(
safe_browsing::kSafetyHubAbusiveNotificationRevocation);
}
#endif