| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/signin/easy_unlock_auth_attempt.h" | 5 #include "chrome/browser/signin/easy_unlock_auth_attempt.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "chrome/browser/signin/easy_unlock_app_manager.h" | 9 #include "chrome/browser/signin/easy_unlock_app_manager.h" |
| 10 #include "chrome/browser/signin/screenlock_bridge.h" | 10 #include "components/signin/content/screenlock_bridge.h" |
| 11 #include "crypto/encryptor.h" | 11 #include "crypto/encryptor.h" |
| 12 #include "crypto/symmetric_key.h" | 12 #include "crypto/symmetric_key.h" |
| 13 | 13 |
| 14 #if defined(OS_CHROMEOS) | 14 #if defined(OS_CHROMEOS) |
| 15 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h" | 15 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h" |
| 16 #endif | 16 #endif |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 // Decrypts the secret that should be used to login from |wrapped_secret| using | 20 // Decrypts the secret that should be used to login from |wrapped_secret| using |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 state_ = STATE_DONE; | 170 state_ = STATE_DONE; |
| 171 } | 171 } |
| 172 | 172 |
| 173 void EasyUnlockAuthAttempt::Cancel(const std::string& user_id) { | 173 void EasyUnlockAuthAttempt::Cancel(const std::string& user_id) { |
| 174 state_ = STATE_DONE; | 174 state_ = STATE_DONE; |
| 175 | 175 |
| 176 const bool kFailure = false; | 176 const bool kFailure = false; |
| 177 finalized_callback_.Run(type_, kFailure, user_id, std::string(), | 177 finalized_callback_.Run(type_, kFailure, user_id, std::string(), |
| 178 std::string()); | 178 std::string()); |
| 179 } | 179 } |
| OLD | NEW |