#include "chrome/browser/cart/cart_service_factory.h"
#include "chrome/browser/cart/cart_service.h"
#include "chrome/browser/history/history_service_factory.h"
#include "chrome/browser/optimization_guide/optimization_guide_keyed_service_factory.h"
#include "content/public/browser/storage_partition.h"
namespace {
std::unique_ptr<KeyedService> BuildCartService(
content::BrowserContext* browser_context) { … }
}
CartServiceFactory* CartServiceFactory::GetInstance() { … }
CartService* CartServiceFactory::GetForProfile(Profile* profile) { … }
BrowserContextKeyedServiceFactory::TestingFactory
CartServiceFactory::GetDefaultFactory() { … }
CartServiceFactory::CartServiceFactory()
: … { … }
CartServiceFactory::~CartServiceFactory() = default;
std::unique_ptr<KeyedService>
CartServiceFactory::BuildServiceInstanceForBrowserContext(
content::BrowserContext* context) const { … }