#include "chrome/browser/signin/easy_unlock_service_factory.h"
-#include "base/command_line.h"
#include "base/memory/singleton.h"
#include "chrome/browser/profiles/incognito_helpers.h"
#include "chrome/browser/profiles/profile.h"
#if defined(OS_CHROMEOS)
#include "chrome/browser/chromeos/profiles/profile_helper.h"
#include "chrome/browser/signin/easy_unlock_service_signin_chromeos.h"
-#include "chromeos/chromeos_switches.h"
#endif
// static
#if defined(OS_CHROMEOS)
if (chromeos::ProfileHelper::IsSigninProfile(
Profile::FromBrowserContext(context))) {
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- chromeos::switches::kEnableEasySignin)) {
+ if (EasyUnlockService::IsSignInEnabled()) {
return new EasyUnlockServiceSignin(Profile::FromBrowserContext(context));
} else {
return NULL;