#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_SYNC_OBSERVER_FACTORY_H_
#define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_SYNC_OBSERVER_FACTORY_H_
#include "base/memory/singleton.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
class Profile;
namespace chromeos {
class AuthSyncObserver;
class AuthSyncObserverFactory
: public BrowserContextKeyedServiceFactory {
public:
static AuthSyncObserver* GetForProfile(Profile* profile);
static AuthSyncObserverFactory* GetInstance();
private:
friend struct DefaultSingletonTraits<AuthSyncObserverFactory>;
AuthSyncObserverFactory();
virtual ~AuthSyncObserverFactory();
virtual KeyedService* BuildServiceInstanceFor(
content::BrowserContext* context) const OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(AuthSyncObserverFactory);
};
}
#endif