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/extended_authenticator.h" | 5 #include "chrome/browser/chromeos/login/auth/extended_authenticator.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "chrome/browser/chromeos/boot_times_loader.h" | 10 #include "chrome/browser/chromeos/boot_times_loader.h" |
11 #include "chrome/browser/chromeos/login/login_status_consumer.h" | 11 #include "chrome/browser/chromeos/login/auth/login_status_consumer.h" |
12 #include "chrome/browser/chromeos/login/parallel_authenticator.h" | 12 #include "chrome/browser/chromeos/login/auth/parallel_authenticator.h" |
13 #include "chromeos/cryptohome/async_method_caller.h" | 13 #include "chromeos/cryptohome/async_method_caller.h" |
14 #include "chromeos/cryptohome/cryptohome_parameters.h" | 14 #include "chromeos/cryptohome/cryptohome_parameters.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/cryptohome_client.h" | 17 #include "chromeos/dbus/cryptohome_client.h" |
18 #include "chromeos/dbus/dbus_thread_manager.h" | 18 #include "chromeos/dbus/dbus_thread_manager.h" |
19 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
20 #include "crypto/sha2.h" | 20 #include "crypto/sha2.h" |
21 #include "google_apis/gaia/gaia_auth_util.h" | 21 #include "google_apis/gaia/gaia_auth_util.h" |
22 #include "third_party/cros_system_api/dbus/service_constants.h" | 22 #include "third_party/cros_system_api/dbus/service_constants.h" |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 std::string hash = | 397 std::string hash = |
398 ParallelAuthenticator::HashPassword(password, system_salt); | 398 ParallelAuthenticator::HashPassword(password, system_salt); |
399 callback.Run(hash); | 399 callback.Run(hash); |
400 return; | 400 return; |
401 } | 401 } |
402 hashing_queue_.push_back(base::Bind( | 402 hashing_queue_.push_back(base::Bind( |
403 &ExtendedAuthenticator::DoHashWithSalt, this, password, callback)); | 403 &ExtendedAuthenticator::DoHashWithSalt, this, password, callback)); |
404 } | 404 } |
405 | 405 |
406 } // namespace chromeos | 406 } // namespace chromeos |
OLD | NEW |