| 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/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "build/build_config.h" |
| 10 #include "chrome/browser/signin/easy_unlock_app_manager.h" | 11 #include "chrome/browser/signin/easy_unlock_app_manager.h" |
| 11 #include "components/proximity_auth/screenlock_bridge.h" | 12 #include "components/proximity_auth/screenlock_bridge.h" |
| 12 #include "components/proximity_auth/switches.h" | 13 #include "components/proximity_auth/switches.h" |
| 13 #include "crypto/encryptor.h" | 14 #include "crypto/encryptor.h" |
| 14 #include "crypto/symmetric_key.h" | 15 #include "crypto/symmetric_key.h" |
| 15 | 16 |
| 16 #if defined(OS_CHROMEOS) | 17 #if defined(OS_CHROMEOS) |
| 17 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h" | 18 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h" |
| 18 #endif | 19 #endif |
| 19 | 20 |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 state_ = STATE_DONE; | 186 state_ = STATE_DONE; |
| 186 } | 187 } |
| 187 | 188 |
| 188 void EasyUnlockAuthAttempt::Cancel(const AccountId& account_id) { | 189 void EasyUnlockAuthAttempt::Cancel(const AccountId& account_id) { |
| 189 state_ = STATE_DONE; | 190 state_ = STATE_DONE; |
| 190 | 191 |
| 191 const bool kFailure = false; | 192 const bool kFailure = false; |
| 192 finalized_callback_.Run(type_, kFailure, account_id, std::string(), | 193 finalized_callback_.Run(type_, kFailure, account_id, std::string(), |
| 193 std::string()); | 194 std::string()); |
| 194 } | 195 } |
| OLD | NEW |