#include "chrome/browser/sessions/tab_restore_service_factory.h"
#include <utility>
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sessions/chrome_tab_restore_service_client.h"
#include "components/sessions/core/tab_restore_service_impl.h"
namespace {
std::unique_ptr<KeyedService> BuildTemplateService(
content::BrowserContext* browser_context) { … }
}
sessions::TabRestoreService* TabRestoreServiceFactory::GetForProfile(
Profile* profile) { … }
sessions::TabRestoreService* TabRestoreServiceFactory::GetForProfileIfExisting(
Profile* profile) { … }
void TabRestoreServiceFactory::ResetForProfile(Profile* profile) { … }
TabRestoreServiceFactory* TabRestoreServiceFactory::GetInstance() { … }
BrowserContextKeyedServiceFactory::TestingFactory
TabRestoreServiceFactory::GetDefaultFactory() { … }
TabRestoreServiceFactory::TabRestoreServiceFactory()
: … { … }
TabRestoreServiceFactory::~TabRestoreServiceFactory() = default;
bool TabRestoreServiceFactory::ServiceIsNULLWhileTesting() const { … }
std::unique_ptr<KeyedService>
TabRestoreServiceFactory::BuildServiceInstanceForBrowserContext(
content::BrowserContext* browser_context) const { … }