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

Unified Diff: chrome/browser/chromeos/cros/cryptohome_library.cc

Issue 10830033: Convert chromeos::CryptohomeClient::TpmCanAttemptOwnership to asynchronous (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comment Created 8 years, 5 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 | « no previous file | chromeos/dbus/cryptohome_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/cros/cryptohome_library.cc
diff --git a/chrome/browser/chromeos/cros/cryptohome_library.cc b/chrome/browser/chromeos/cros/cryptohome_library.cc
index b67b55f9967dda4d48adfaef8f7ea8ccf71c55fd..f4538328bb7199a2f713e794e3ea9cac09e6a305 100644
--- a/chrome/browser/chromeos/cros/cryptohome_library.cc
+++ b/chrome/browser/chromeos/cros/cryptohome_library.cc
@@ -6,19 +6,23 @@
#include <map>
+#include "base/bind.h"
#include "base/memory/weak_ptr.h"
#include "base/string_number_conversions.h"
#include "base/string_util.h"
#include "chromeos/dbus/cryptohome_client.h"
#include "chromeos/dbus/dbus_thread_manager.h"
+namespace chromeos {
+
namespace {
const char kStubSystemSalt[] = "stub_system_salt";
-}
+// Does nothing. Used as a Cryptohome::VoidMethodCallback.
+void DoNothing(DBusMethodCallStatus call_status) {}
-namespace chromeos {
+} // namespace
// This class handles the interaction with the ChromeOS cryptohome library APIs.
class CryptohomeLibraryImpl : public CryptohomeLibrary {
@@ -49,7 +53,8 @@ class CryptohomeLibraryImpl : public CryptohomeLibrary {
}
virtual void TpmCanAttemptOwnership() OVERRIDE {
- DBusThreadManager::Get()->GetCryptohomeClient()->TpmCanAttemptOwnership();
+ DBusThreadManager::Get()->GetCryptohomeClient()->TpmCanAttemptOwnership(
+ base::Bind(&DoNothing));
}
virtual void TpmClearStoredPassword() OVERRIDE {
« no previous file with comments | « no previous file | chromeos/dbus/cryptohome_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698