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

Unified Diff: chromeos/dbus/cryptohome_client.cc

Issue 14761012: Updated SessionManagerClient to use the multi-profile user policy calls. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added TODO Created 7 years, 7 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/cryptohome_client.h ('k') | chromeos/dbus/fake_session_manager_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/cryptohome_client.cc
diff --git a/chromeos/dbus/cryptohome_client.cc b/chromeos/dbus/cryptohome_client.cc
index d1f4804d7efdb0cc4af88e1107b4f110781f3cf9..c05ff7c51ac97b801948c0923b0d4ac9bbeae0c1 100644
--- a/chromeos/dbus/cryptohome_client.cc
+++ b/chromeos/dbus/cryptohome_client.cc
@@ -858,7 +858,7 @@ class CryptohomeClientStubImpl : public CryptohomeClient {
const StringDBusMethodCallback& callback) OVERRIDE {
// Even for stub implementation we have to return different values
// so that multi-profiles would work.
- std::string sanitized_username = username + kUserIdStubHashSuffix;
+ std::string sanitized_username = GetStubSanitizedUsername(username);
MessageLoop::current()->PostTask(
FROM_HERE,
base::Bind(callback, DBUS_METHOD_CALL_SUCCESS, sanitized_username));
@@ -1198,4 +1198,10 @@ CryptohomeClient* CryptohomeClient::Create(DBusClientImplementationType type,
return new CryptohomeClientStubImpl();
}
+// static
+std::string CryptohomeClient::GetStubSanitizedUsername(
+ const std::string& username) {
+ return username + kUserIdStubHashSuffix;
+}
+
} // namespace chromeos
« no previous file with comments | « chromeos/dbus/cryptohome_client.h ('k') | chromeos/dbus/fake_session_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698