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

Unified Diff: chromeos/dbus/fake_cryptohome_client.cc

Issue 43503003: chromeos: Remove SystemSaltGetter::GetSystemSaltSync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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
Index: chromeos/dbus/fake_cryptohome_client.cc
diff --git a/chromeos/dbus/fake_cryptohome_client.cc b/chromeos/dbus/fake_cryptohome_client.cc
index 861a1c5730c4fa211351f6f66be27b5e39f0d748..50ae793bdf55e4d2e5780e542951234824634f40 100644
--- a/chromeos/dbus/fake_cryptohome_client.cc
+++ b/chromeos/dbus/fake_cryptohome_client.cc
@@ -80,9 +80,11 @@ void FakeCryptohomeClient::AsyncRemove(
ReturnAsyncMethodResult(callback, false);
}
-bool FakeCryptohomeClient::GetSystemSalt(std::vector<uint8>* salt) {
- *salt = system_salt_;
- return true;
+void FakeCryptohomeClient::GetSystemSalt(
+ const GetSystemSaltCallback& callback) {
+ base::MessageLoop::current()->PostTask(
+ FROM_HERE,
+ base::Bind(callback, DBUS_METHOD_CALL_SUCCESS, system_salt_));
}
void FakeCryptohomeClient::GetSanitizedUsername(

Powered by Google App Engine
This is Rietveld 408576698