Index: chrome/browser/ui/cocoa/profile_menu_controller_unittest.mm |
diff --git a/chrome/browser/ui/cocoa/profile_menu_controller_unittest.mm b/chrome/browser/ui/cocoa/profile_menu_controller_unittest.mm |
index 06f22b395eb295a87f8b823639c6621f4574815b..3518864cda7944039a6e3471cb974668651adfe6 100644 |
--- a/chrome/browser/ui/cocoa/profile_menu_controller_unittest.mm |
+++ b/chrome/browser/ui/cocoa/profile_menu_controller_unittest.mm |
@@ -197,8 +197,7 @@ TEST_F(ProfileMenuControllerTest, SetActiveAndRemove) { |
ASSERT_EQ(7, [menu numberOfItems]); |
// Create a browser and "show" it. |
- Browser::CreateParams profile2_params(profile2, |
- chrome::HOST_DESKTOP_TYPE_NATIVE); |
+ Browser::CreateParams profile2_params(profile2, chrome::GetActiveDesktop()); |
scoped_ptr<Browser> p2_browser( |
chrome::CreateBrowserWithTestWindowForParams(&profile2_params)); |
BrowserList::SetLastActive(p2_browser.get()); |
@@ -209,8 +208,7 @@ TEST_F(ProfileMenuControllerTest, SetActiveAndRemove) { |
VerifyProfileNamedIsActive(@"Profile 2", __LINE__); |
// Open a new browser and make sure it takes effect. |
- Browser::CreateParams profile3_params(profile3, |
- chrome::HOST_DESKTOP_TYPE_NATIVE); |
+ Browser::CreateParams profile3_params(profile3, chrome::GetActiveDesktop()); |
scoped_ptr<Browser> p3_browser( |
chrome::CreateBrowserWithTestWindowForParams(&profile3_params)); |
BrowserList::SetLastActive(p3_browser.get()); |