| 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 "chromeos/tpm_token_info_getter.h" | 5 #include "chromeos/tpm/tpm_token_info_getter.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "chromeos/dbus/cryptohome_client.h" | 9 #include "chromeos/dbus/cryptohome_client.h" |
| 10 | 10 |
| 11 namespace { | 11 namespace { |
| 12 | 12 |
| 13 const int64 kInitialRequestDelayMs = 100; | 13 const int64 kInitialRequestDelayMs = 100; |
| 14 const int64 kMaxRequestDelayMs = 300000; // 5 minutes | 14 const int64 kMaxRequestDelayMs = 300000; // 5 minutes |
| 15 | 15 |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 TPMTokenInfo token_info; | 153 TPMTokenInfo token_info; |
| 154 token_info.tpm_is_enabled = true; | 154 token_info.tpm_is_enabled = true; |
| 155 token_info.token_name = token_name; | 155 token_info.token_name = token_name; |
| 156 token_info.user_pin = user_pin; | 156 token_info.user_pin = user_pin; |
| 157 token_info.token_slot_id = token_slot_id; | 157 token_info.token_slot_id = token_slot_id; |
| 158 | 158 |
| 159 callback_.Run(token_info); | 159 callback_.Run(token_info); |
| 160 } | 160 } |
| 161 | 161 |
| 162 } // namespace chromeos | 162 } // namespace chromeos |
| OLD | NEW |