| Index: chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc
|
| diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc
|
| index b72027dbd39ad37e4fcd278f8aee7e34653cb69e..bacb02fb44d1bb726bf2449fc50e5ef1804d45fb 100644
|
| --- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc
|
| +++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc
|
| @@ -2825,22 +2825,16 @@ TEST_F(MultiProfileMultiBrowserShelfLayoutChromeLauncherControllerImplTest,
|
| EXPECT_TRUE(CheckMenuCreation(
|
| launcher_controller_.get(), item_browser, 1, one_menu_item1, true));
|
|
|
| - // Create a browser for another user and check that it is not included in the
|
| - // users running browser list.
|
| + // Switch to another user's desktop and create a browser.
|
| std::string user2 = "user2";
|
| TestingProfile* profile2 = CreateMultiUserProfile(user2);
|
| const AccountId account_id2(
|
| multi_user_util::GetAccountIdFromProfile(profile2));
|
| + SwitchActiveUser(account_id2);
|
| std::unique_ptr<Browser> browser2(
|
| CreateBrowserAndTabWithProfile(profile2, user2, "http://test2"));
|
| base::string16 one_menu_item2[] = { ASCIIToUTF16(user2) };
|
| EXPECT_TRUE(CheckMenuCreation(
|
| - launcher_controller_.get(), item_browser, 1, one_menu_item1, true));
|
| -
|
| - // Switch to the other user and make sure that only that browser window gets
|
| - // shown.
|
| - SwitchActiveUser(account_id2);
|
| - EXPECT_TRUE(CheckMenuCreation(
|
| launcher_controller_.get(), item_browser, 1, one_menu_item2, true));
|
|
|
| // Transferred browsers of other users should not show up in the list.
|
|
|