#include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h"
#include <memory>
#include "base/no_destructor.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/custom_handlers/chrome_protocol_handler_registry_delegate.h"
#include "components/custom_handlers/protocol_handler_registry.h"
#include "components/user_prefs/user_prefs.h"
#include "content/public/browser/browser_context.h"
ProtocolHandlerRegistryFactory* ProtocolHandlerRegistryFactory::GetInstance() { … }
custom_handlers::ProtocolHandlerRegistry*
ProtocolHandlerRegistryFactory::GetForBrowserContext(
content::BrowserContext* context) { … }
ProtocolHandlerRegistryFactory::ProtocolHandlerRegistryFactory()
: … { … }
ProtocolHandlerRegistryFactory::~ProtocolHandlerRegistryFactory() = default;
bool
ProtocolHandlerRegistryFactory::ServiceIsCreatedWithBrowserContext() const { … }
bool ProtocolHandlerRegistryFactory::ServiceIsNULLWhileTesting() const { … }
std::unique_ptr<KeyedService>
ProtocolHandlerRegistryFactory::BuildServiceInstanceForBrowserContext(
content::BrowserContext* context) const { … }