| Index: chrome/browser/chromeos/login/fake_login_utils.cc
|
| diff --git a/chrome/browser/chromeos/login/fake_login_utils.cc b/chrome/browser/chromeos/login/fake_login_utils.cc
|
| index cd573deb4f68c9d0378f670fe096d5eb99371081..2f7a0f11ed75e0c23072851e7078eebbb1414aef 100644
|
| --- a/chrome/browser/chromeos/login/fake_login_utils.cc
|
| +++ b/chrome/browser/chromeos/login/fake_login_utils.cc
|
| @@ -61,17 +61,7 @@ void FakeLoginUtils::PrepareProfile(const UserContext& user_context,
|
| LoginUtils::Delegate* delegate) {
|
| UserManager::Get()->UserLoggedIn(
|
| user_context.username, user_context.username_hash, false);
|
| - Profile* profile;
|
| - if (should_launch_browser_) {
|
| - profile = CreateProfile(user_context.username);
|
| - } else {
|
| - TestingProfile* testing_profile = new TestingProfile();
|
| - testing_profile->set_profile_name(user_context.username);
|
| -
|
| - profile = testing_profile;
|
| - g_browser_process->profile_manager()->
|
| - RegisterTestingProfile(profile, false, false);
|
| - }
|
| + Profile* profile = CreateProfile(user_context.username);
|
|
|
| if (UserManager::Get()->IsLoggedInAsLocallyManagedUser()) {
|
| User* active_user = UserManager::Get()->GetActiveUser();
|
|
|