#include "chrome/browser/favicon/history_ui_favicon_request_handler_factory.h"
#include "base/no_destructor.h"
#include "chrome/browser/favicon/favicon_service_factory.h"
#include "chrome/browser/favicon/large_icon_service_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/sync_service_factory.h"
#include "components/favicon/core/history_ui_favicon_request_handler_impl.h"
#include "components/sync/service/sync_service.h"
#include "components/sync/service/sync_service_utils.h"
#include "content/public/browser/browser_context.h"
namespace {
bool CanSendHistoryData(syncer::SyncService* sync_service) { … }
}
favicon::HistoryUiFaviconRequestHandler*
HistoryUiFaviconRequestHandlerFactory::GetForBrowserContext(
content::BrowserContext* context) { … }
HistoryUiFaviconRequestHandlerFactory*
HistoryUiFaviconRequestHandlerFactory::GetInstance() { … }
HistoryUiFaviconRequestHandlerFactory::HistoryUiFaviconRequestHandlerFactory()
: … { … }
HistoryUiFaviconRequestHandlerFactory::
~HistoryUiFaviconRequestHandlerFactory() = default;
std::unique_ptr<KeyedService>
HistoryUiFaviconRequestHandlerFactory::BuildServiceInstanceForBrowserContext(
content::BrowserContext* context) const { … }
bool HistoryUiFaviconRequestHandlerFactory::ServiceIsNULLWhileTesting() const { … }