This source file includes following definitions.
- CreateForProfile
#include "chrome/browser/signin/signin_tracker_factory.h"
#include "chrome/browser/signin/account_reconcilor_factory.h"
#include "chrome/browser/signin/chrome_signin_client_factory.h"
#include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
#include "chrome/browser/signin/signin_manager_factory.h"
#include "chrome/common/profile_management_switches.h"
SigninTrackerFactory::SigninTrackerFactory() {}
SigninTrackerFactory::~SigninTrackerFactory() {}
scoped_ptr<SigninTracker> SigninTrackerFactory::CreateForProfile(
Profile* profile,
SigninTracker::Observer* observer) {
AccountReconcilor* account_reconcilor = NULL;
if (!switches::IsEnableWebBasedSignin() && switches::IsNewProfileManagement())
account_reconcilor = AccountReconcilorFactory::GetForProfile(profile);
return scoped_ptr<SigninTracker>(new SigninTracker(
ProfileOAuth2TokenServiceFactory::GetForProfile(profile),
SigninManagerFactory::GetForProfile(profile),
account_reconcilor,
ChromeSigninClientFactory::GetForProfile(profile),
observer));
}