This source file includes following definitions.
- GetAppListModel
- GetAppListService
- SigninProfile
#include "chrome/browser/ui/app_list/test/chrome_app_list_test_support.h"
#include "chrome/browser/signin/signin_manager_factory.h"
#include "chrome/browser/ui/app_list/app_list_service.h"
#include "chrome/browser/ui/app_list/app_list_syncable_service.h"
#include "chrome/browser/ui/app_list/app_list_syncable_service_factory.h"
#include "components/signin/core/browser/signin_manager.h"
namespace test {
app_list::AppListModel* GetAppListModel(AppListService* service) {
return app_list::AppListSyncableServiceFactory::GetForProfile(
service->GetCurrentAppListProfile())->model();
}
AppListService* GetAppListService() {
return AppListService::Get(chrome::GetActiveDesktop());
}
void SigninProfile(Profile* profile) {
SigninManagerFactory::GetForProfile(profile)->
SetAuthenticatedUsername("user@example.com");
}
}