diff options
author | nkostylev@chromium.org <nkostylev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-10 09:32:42 +0000 |
---|---|---|
committer | nkostylev@chromium.org <nkostylev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-10 09:32:42 +0000 |
commit | 847522f9fc1e134417e8bc87af9ab20cb3e7f123 (patch) | |
tree | 87b309b01ed8ee6a583ed352bcfc1f4499927209 /chromeos/dbus/cryptohome_client.cc | |
parent | 3b7afe15e2b96bcc325eeed3dcaf88fe9b2dc6d7 (diff) | |
download | chromium_src-847522f9fc1e134417e8bc87af9ab20cb3e7f123.zip chromium_src-847522f9fc1e134417e8bc87af9ab20cb3e7f123.tar.gz chromium_src-847522f9fc1e134417e8bc87af9ab20cb3e7f123.tar.bz2 |
[cros mp] Load profiles from /home/chronos/u-[$hash], add GetUserIdHashFromProfile()
* KioskTest.InstallAndLaunchApp will fail when --multi-profiles switch is passed. Kiosk MP auth flow support is tracked at http://crbug.com/238985
BUG=238623,229411
TBR=pneubeck
Review URL: https://chromiumcodereview.appspot.com/14581006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199434 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/cryptohome_client.cc')
-rw-r--r-- | chromeos/dbus/cryptohome_client.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chromeos/dbus/cryptohome_client.cc b/chromeos/dbus/cryptohome_client.cc index 286533d..dc4486d 100644 --- a/chromeos/dbus/cryptohome_client.cc +++ b/chromeos/dbus/cryptohome_client.cc @@ -18,6 +18,10 @@ namespace chromeos { namespace { +// This suffix is appended to user_id to get hash in stub implementation: +// stub_hash = "[user_id]-hash"; +static const char kUserIdStubHashSuffix[] = "-hash"; + // The CryptohomeClient implementation. class CryptohomeClientImpl : public CryptohomeClient { public: @@ -854,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 + "-profile"; + std::string sanitized_username = username + kUserIdStubHashSuffix; MessageLoop::current()->PostTask( FROM_HERE, base::Bind(callback, DBUS_METHOD_CALL_SUCCESS, sanitized_username)); |