Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Unified Diff: chromeos/tpm_password_fetcher.cc

Issue 402403004: Refactoring : Move OnlineAttempt to chromeos/login (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Yet another merge with ToT Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/tpm_password_fetcher.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/tpm_password_fetcher.cc
diff --git a/chrome/browser/chromeos/login/auth/tpm_password_fetcher.cc b/chromeos/tpm_password_fetcher.cc
similarity index 83%
rename from chrome/browser/chromeos/login/auth/tpm_password_fetcher.cc
rename to chromeos/tpm_password_fetcher.cc
index e447a8a88b4242c18669890b5ecdf222a4e3008a..e8da91d51c606b6f906b22f16a3b26c42289bdc5 100644
--- a/chrome/browser/chromeos/login/auth/tpm_password_fetcher.cc
+++ b/chromeos/tpm_password_fetcher.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/chromeos/login/auth/tpm_password_fetcher.h"
+#include "tpm_password_fetcher.h"
#include "base/bind.h"
#include "base/compiler_specific.h"
@@ -20,8 +20,7 @@ const int kTpmCheckIntervalMs = 500;
} // namespace
TpmPasswordFetcher::TpmPasswordFetcher(TpmPasswordFetcherDelegate* delegate)
- : weak_factory_(this),
- delegate_(delegate) {
+ : weak_factory_(this), delegate_(delegate) {
DCHECK(delegate_);
}
@@ -32,17 +31,15 @@ void TpmPasswordFetcher::Fetch() {
// Since this method is also called directly.
weak_factory_.InvalidateWeakPtrs();
- DBusThreadManager::Get()->GetCryptohomeClient()->TpmIsReady(
- base::Bind(&TpmPasswordFetcher::OnTpmIsReady,
- weak_factory_.GetWeakPtr()));
+ DBusThreadManager::Get()->GetCryptohomeClient()->TpmIsReady(base::Bind(
+ &TpmPasswordFetcher::OnTpmIsReady, weak_factory_.GetWeakPtr()));
}
void TpmPasswordFetcher::OnTpmIsReady(DBusMethodCallStatus call_status,
bool tpm_is_ready) {
if (call_status == DBUS_METHOD_CALL_SUCCESS && tpm_is_ready) {
- DBusThreadManager::Get()->GetCryptohomeClient()->TpmGetPassword(
- base::Bind(&TpmPasswordFetcher::OnTpmGetPassword,
- weak_factory_.GetWeakPtr()));
+ DBusThreadManager::Get()->GetCryptohomeClient()->TpmGetPassword(base::Bind(
+ &TpmPasswordFetcher::OnTpmGetPassword, weak_factory_.GetWeakPtr()));
} else {
// Password hasn't been acquired, reschedule fetch.
RescheduleFetch();
« no previous file with comments | « chromeos/tpm_password_fetcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698