#include "chrome/browser/safe_browsing/chrome_ping_manager_factory.h"
#include "base/command_line.h"
#include "base/no_destructor.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/safe_browsing/chrome_safe_browsing_hats_delegate.h"
#include "chrome/browser/safe_browsing/chrome_user_population_helper.h"
#include "chrome/browser/safe_browsing/chrome_v4_protocol_config_provider.h"
#include "chrome/browser/safe_browsing/safe_browsing_service.h"
#include "chrome/browser/signin/identity_manager_factory.h"
#include "components/prefs/pref_service.h"
#include "components/safe_browsing/content/browser/web_ui/safe_browsing_ui.h"
#include "components/safe_browsing/core/browser/ping_manager.h"
#include "components/safe_browsing/core/browser/sync/safe_browsing_primary_account_token_fetcher.h"
#include "components/safe_browsing/core/browser/sync/sync_utils.h"
#include "components/safe_browsing/core/common/features.h"
#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
#include "content/public/browser/browser_thread.h"
namespace safe_browsing {
namespace {
bool kAllowPingManagerInTests = …;
}
ChromePingManagerFactory* ChromePingManagerFactory::GetInstance() { … }
PingManager* ChromePingManagerFactory::GetForBrowserContext(
content::BrowserContext* context) { … }
ChromePingManagerFactory::ChromePingManagerFactory()
: … { … }
ChromePingManagerFactory::~ChromePingManagerFactory() = default;
std::unique_ptr<KeyedService>
ChromePingManagerFactory::BuildServiceInstanceForBrowserContext(
content::BrowserContext* context) const { … }
bool ChromePingManagerFactory::ShouldFetchAccessTokenForReport(
Profile* profile) { … }
bool ChromePingManagerFactory::ShouldSendPersistedReport(Profile* profile) { … }
bool ChromePingManagerFactory::ServiceIsCreatedWithBrowserContext() const { … }
bool ChromePingManagerFactory::ServiceIsNULLWhileTesting() const { … }
ChromePingManagerAllowerForTesting::ChromePingManagerAllowerForTesting() { … }
ChromePingManagerAllowerForTesting::~ChromePingManagerAllowerForTesting() { … }
}