| 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 "tpm_password_fetcher.h" | 5 #include "tpm_password_fetcher.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "chromeos/dbus/cryptohome_client.h" | 10 #include "chromeos/dbus/cryptohome_client.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 } | 63 } |
| 64 | 64 |
| 65 void TpmPasswordFetcher::RescheduleFetch() { | 65 void TpmPasswordFetcher::RescheduleFetch() { |
| 66 base::MessageLoop::current()->PostDelayedTask( | 66 base::MessageLoop::current()->PostDelayedTask( |
| 67 FROM_HERE, | 67 FROM_HERE, |
| 68 base::Bind(&TpmPasswordFetcher::Fetch, weak_factory_.GetWeakPtr()), | 68 base::Bind(&TpmPasswordFetcher::Fetch, weak_factory_.GetWeakPtr()), |
| 69 base::TimeDelta::FromMilliseconds(kTpmCheckIntervalMs)); | 69 base::TimeDelta::FromMilliseconds(kTpmCheckIntervalMs)); |
| 70 } | 70 } |
| 71 | 71 |
| 72 } // namespace chromeos | 72 } // namespace chromeos |
| OLD | NEW |