| 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/chromeos/login/easy_unlock/easy_unlock_create_keys_oper
ation.h" | 5 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_create_keys_oper
ation.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
| 13 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h" | 13 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h" |
| 14 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_types.h" | 14 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_types.h" |
| 15 #include "chromeos/cryptohome/homedir_methods.h" | 15 #include "chromeos/cryptohome/homedir_methods.h" |
| 16 #include "chromeos/cryptohome/system_salt_getter.h" | 16 #include "chromeos/cryptohome/system_salt_getter.h" |
| 17 #include "chromeos/dbus/dbus_thread_manager.h" | 17 #include "chromeos/dbus/dbus_thread_manager.h" |
| 18 #include "chromeos/dbus/easy_unlock_client.h" | 18 #include "chromeos/dbus/easy_unlock_client.h" |
| 19 #include "chromeos/login/auth/key.h" | 19 #include "chromeos/login/auth/key.h" |
| 20 #include "components/proximity_auth/base64url.h" | 20 #include "components/proximity_auth/cryptauth/base64url.h" |
| 21 #include "crypto/encryptor.h" | 21 #include "crypto/encryptor.h" |
| 22 #include "crypto/random.h" | 22 #include "crypto/random.h" |
| 23 #include "crypto/symmetric_key.h" | 23 #include "crypto/symmetric_key.h" |
| 24 #include "google_apis/gaia/gaia_auth_util.h" | 24 #include "google_apis/gaia/gaia_auth_util.h" |
| 25 #include "third_party/cros_system_api/dbus/service_constants.h" | 25 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 26 | 26 |
| 27 namespace chromeos { | 27 namespace chromeos { |
| 28 | 28 |
| 29 namespace { | 29 namespace { |
| 30 | 30 |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 user_context_.GetKey()->GetLabel() == | 385 user_context_.GetKey()->GetLabel() == |
| 386 EasyUnlockKeyManager::GetKeyLabel(key_creation_index_)) { | 386 EasyUnlockKeyManager::GetKeyLabel(key_creation_index_)) { |
| 387 user_context_.SetKey(user_key); | 387 user_context_.SetKey(user_key); |
| 388 } | 388 } |
| 389 | 389 |
| 390 ++key_creation_index_; | 390 ++key_creation_index_; |
| 391 CreateKeyForDeviceAtIndex(key_creation_index_); | 391 CreateKeyForDeviceAtIndex(key_creation_index_); |
| 392 } | 392 } |
| 393 | 393 |
| 394 } // namespace chromeos | 394 } // namespace chromeos |
| OLD | NEW |