| Index: chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc
|
| diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc
|
| index 6d3d08c1cd664b0012690a9788851f4cbcbe3760..44eded23d77c87dd2f18ad99cad777ec68f819fa 100644
|
| --- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc
|
| +++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc
|
| @@ -63,7 +63,6 @@
|
| #include "chrome/common/chrome_switches.h"
|
| #include "chrome/test/base/testing_browser_process.h"
|
| #include "chrome/test/base/testing_profile_manager.h"
|
| -#include "components/signin/core/account_id/account_id.h"
|
| #include "components/user_manager/fake_user_manager.h"
|
| #include "content/public/browser/web_contents_observer.h"
|
| #include "content/public/test/test_utils.h"
|
| @@ -809,23 +808,22 @@
|
| // Creates a profile for a given |user_name|. Note that this class will keep
|
| // the ownership of the created object.
|
| TestingProfile* CreateMultiUserProfile(const std::string& user_name) {
|
| - const std::string email_string = user_name + "@example.com";
|
| - const AccountId account_id(AccountId::FromUserEmail(email_string));
|
| + std::string email_string = user_name + "@example.com";
|
| static_cast<ash::test::TestSessionStateDelegate*>(
|
| ash::Shell::GetInstance()->session_state_delegate())
|
| - ->AddUser(account_id.GetUserEmail());
|
| + ->AddUser(email_string);
|
| // Add a user to the fake user manager.
|
| - session_delegate()->AddUser(account_id.GetUserEmail());
|
| - GetFakeUserManager()->AddUser(account_id);
|
| -
|
| - GetFakeUserManager()->LoginUser(account_id);
|
| + session_delegate()->AddUser(email_string);
|
| + GetFakeUserManager()->AddUser(email_string);
|
| +
|
| + GetFakeUserManager()->LoginUser(email_string);
|
|
|
| TestingProfile* profile =
|
| - profile_manager()->CreateTestingProfile(account_id.GetUserEmail());
|
| + profile_manager()->CreateTestingProfile(email_string);
|
| EXPECT_TRUE(profile);
|
|
|
| // Remember the profile name so that we can destroy it upon destruction.
|
| - created_profiles_[profile] = account_id.GetUserEmail();
|
| + created_profiles_[profile] = email_string;
|
| if (chrome::MultiUserWindowManager::GetInstance())
|
| chrome::MultiUserWindowManager::GetInstance()->AddUser(profile);
|
| if (launcher_controller_)
|
| @@ -835,19 +833,18 @@
|
|
|
| // Switch to another user.
|
| void SwitchActiveUser(const std::string& name) {
|
| - const AccountId account_id(AccountId::FromUserEmail(name));
|
| - session_delegate()->SwitchActiveUser(account_id.GetUserEmail());
|
| - GetFakeUserManager()->SwitchActiveUser(account_id);
|
| + session_delegate()->SwitchActiveUser(name);
|
| + GetFakeUserManager()->SwitchActiveUser(name);
|
| chrome::MultiUserWindowManagerChromeOS* manager =
|
| static_cast<chrome::MultiUserWindowManagerChromeOS*>(
|
| chrome::MultiUserWindowManager::GetInstance());
|
| manager->SetAnimationSpeedForTest(
|
| chrome::MultiUserWindowManagerChromeOS::ANIMATION_SPEED_DISABLED);
|
| - manager->ActiveUserChanged(account_id.GetUserEmail());
|
| - launcher_controller_->browser_status_monitor_for_test()->ActiveUserChanged(
|
| - account_id.GetUserEmail());
|
| - launcher_controller_->app_window_controller_for_test()->ActiveUserChanged(
|
| - account_id.GetUserEmail());
|
| + manager->ActiveUserChanged(name);
|
| + launcher_controller_->browser_status_monitor_for_test()->
|
| + ActiveUserChanged(name);
|
| + launcher_controller_->app_window_controller_for_test()->
|
| + ActiveUserChanged(name);
|
| }
|
|
|
| // Creates a browser with a |profile| and load a tab with a |title| and |url|.
|
|
|