Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / signin / easy_unlock_auth_attempt.cc
index 9a1842c..63920da 100644 (file)
@@ -18,9 +18,6 @@
 
 namespace {
 
-// Fake secret used to force invalid login.
-const char kStubSecret[] = "\xFF\x00";
-
 // Decrypts the secret that should be used to login from |wrapped_secret| using
 // raw AES key |raw_key|.
 // In a case of error, an empty string is returned.
@@ -133,12 +130,6 @@ void EasyUnlockAuthAttempt::FinalizeSignin(const std::string& user_id,
 
   std::string unwrapped_secret = UnwrapSecret(wrapped_secret, raw_session_key);
 
-  // If secret is not set, set it to an arbitrary value, otherwise there will
-  // be no authenitcation attempt and the ui will get stuck.
-  // TODO(tbarzic): Find a better way to handle this case.
-  if (unwrapped_secret.empty())
-    unwrapped_secret = kStubSecret;
-
   std::string key_label;
 #if defined(OS_CHROMEOS)
   key_label = chromeos::EasyUnlockKeyManager::GetKeyLabel(0u);