Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2364)

Unified Diff: chrome/browser/chromeos/login/fake_login_utils.cc

Issue 110913009: ChromeOS: properly enable multiprofile mode in LoginManagerTest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review changes Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/login_manager_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/login_manager_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698