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

Unified Diff: chromeos/dbus/fake_cryptohome_client.cc

Issue 39443002: settings: Add async system salt retrieval logic in DeviceOAuth2TokenServiceFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments 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
« no previous file with comments | « chromeos/dbus/fake_cryptohome_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/fake_cryptohome_client.cc
diff --git a/chromeos/dbus/fake_cryptohome_client.cc b/chromeos/dbus/fake_cryptohome_client.cc
index d23be710ec178c6cd4d953657c1ebe43f241c40e..861a1c5730c4fa211351f6f66be27b5e39f0d748 100644
--- a/chromeos/dbus/fake_cryptohome_client.cc
+++ b/chromeos/dbus/fake_cryptohome_client.cc
@@ -17,6 +17,7 @@ FakeCryptohomeClient::FakeCryptohomeClient()
async_call_id_(1),
tpm_is_ready_counter_(0),
unmount_result_(true),
+ system_salt_(GetStubSystemSalt()),
locked_(false),
weak_ptr_factory_(this) {}
@@ -80,7 +81,7 @@ void FakeCryptohomeClient::AsyncRemove(
}
bool FakeCryptohomeClient::GetSystemSalt(std::vector<uint8>* salt) {
- *salt = GetStubSystemSalt();
+ *salt = system_salt_;
return true;
}
« no previous file with comments | « chromeos/dbus/fake_cryptohome_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698