Fixed misuse of GetProfileByUser in MultiProfileUserController.
commit41172df36558ef998336e8ab18535398870aee6d
authordzhioev@chromium.org <dzhioev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 14 Aug 2014 17:40:49 +0000 (14 17:40 +0000)
committerdzhioev@chromium.org <dzhioev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 14 Aug 2014 17:42:34 +0000 (14 17:42 +0000)
tree5d325b37ccf8f25bf7c90aba771c2ab38ed765cd
parent1cfd84370b8117179108935d0c2fdf40cb2afd7a
Fixed misuse of GetProfileByUser in MultiProfileUserController.

GetProfileByUserUnsafe was called to yearly sometimes, when profile was not
created yet. I replaced GetProfileByUserUnsafe with GetProfileByUser and added
check that it is not NULL.

BUG=361528

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

Cr-Commit-Position: refs/heads/master@{#289639}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289639 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/chromeos/login/users/multi_profile_user_controller.cc