SupervisedUsers : Fix transaction cleanup
commit9bea703fbad9d322939fe79f5dd408dd6f75864f
authorantrim@chromium.org <antrim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 14 Nov 2013 13:10:25 +0000 (14 13:10 +0000)
committerantrim@chromium.org <antrim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 14 Nov 2013 13:10:25 +0000 (14 13:10 +0000)
treede8ca6a594aa6dfa31974b1228ff4ed5a779a13a
parent491236140c3f8226f2f89adbc61f246d3606145a
SupervisedUsers : Fix transaction cleanup
When we create SU, it is a multi-step process. If creation fails on a late stage, we need to undo changes made on earlier stages (like adding user to a list, and creating home directory).
At some point this clean-up process got broken.
This CL fixes that.

BUG=313039
R=nkostylev@chromium.org

Review URL: https://codereview.chromium.org/63173012

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235134 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/chromeos/login/managed/supervised_user_creation_browsertest.cc
chrome/browser/chromeos/login/supervised_user_manager_impl.cc
chrome/browser/chromeos/login/user_manager_impl.cc
chrome/browser/chromeos/login/user_manager_impl.h