Upstream version 11.39.250.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / signin / easy_unlock_service_factory.cc
index cb981ee..47d89bd 100644 (file)
@@ -4,7 +4,6 @@
 
 #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"
@@ -17,7 +16,6 @@
 #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
@@ -48,8 +46,7 @@ KeyedService* EasyUnlockServiceFactory::BuildServiceInstanceFor(
 #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;