| Index: chrome/browser/chromeos/login/login_performer.cc
|
| diff --git a/chrome/browser/chromeos/login/login_performer.cc b/chrome/browser/chromeos/login/login_performer.cc
|
| index a736a38240e802502feee695994907e1776bb9e4..6abc1db3d6bb9825f7d9cd7fec588b083a1e21c6 100644
|
| --- a/chrome/browser/chromeos/login/login_performer.cc
|
| +++ b/chrome/browser/chromeos/login/login_performer.cc
|
| @@ -157,18 +157,21 @@ void LoginPerformer::OnLoginSuccess(
|
| // It is not guaranted, that profile creation has been finished yet. So use
|
| // async version here.
|
| credentials_ = credentials;
|
| - ProfileManager::CreateDefaultProfileAsync(this);
|
| + ProfileManager::CreateDefaultProfileAsync(
|
| + base::Bind(&LoginPerformer::OnProfileCreated, AsWeakPtr()));
|
| }
|
| }
|
|
|
| -void LoginPerformer::OnProfileCreated(Profile* profile, Status status) {
|
| +void LoginPerformer::OnProfileCreated(
|
| + Profile* profile,
|
| + Profile::CreateStatus status) {
|
| CHECK(profile);
|
| switch (status) {
|
| - case STATUS_INITIALIZED:
|
| + case Profile::CREATE_STATUS_INITIALIZED:
|
| break;
|
| - case STATUS_CREATED:
|
| + case Profile::CREATE_STATUS_CREATED:
|
| return;
|
| - case STATUS_FAIL:
|
| + case Profile::CREATE_STATUS_FAIL:
|
| default:
|
| NOTREACHED();
|
| return;
|
|
|