Index: chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm |
diff --git a/chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm b/chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm |
index 2111a8c7a76ffe93df3c23164208e189f9dc60eb..02ebbb843541788be0e00059bf67bbc299db4596 100644 |
--- a/chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm |
+++ b/chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm |
@@ -535,8 +535,7 @@ IN_PROC_BROWSER_TEST_F(BrowserWindowControllerTest, SheetPosition) { |
chrome::ToggleBookmarkBarWhenVisible(browser()->profile()); |
// Open application mode window. |
OpenAppShortcutWindow(browser()->profile(), GURL("about:blank")); |
- Browser* popup_browser = BrowserList::GetInstance( |
- chrome::GetActiveDesktop())->GetLastActive(); |
+ Browser* popup_browser = BrowserList::GetInstance()->GetLastActive(); |
NSWindow* popupWindow = popup_browser->window()->GetNativeWindow(); |
BrowserWindowController* popupController = |
[BrowserWindowController browserWindowControllerForWindow:popupWindow]; |
@@ -567,8 +566,7 @@ IN_PROC_BROWSER_TEST_F(BrowserWindowControllerTest, |
[[controller() infoBarContainerController] shouldSuppressTopInfoBarTip]); |
OpenAppShortcutWindow(browser()->profile(), GURL("about:blank")); |
- Browser* popup_browser = BrowserList::GetInstance( |
- chrome::HOST_DESKTOP_TYPE_NATIVE)->GetLastActive(); |
+ Browser* popup_browser = BrowserList::GetInstance()->GetLastActive(); |
NSWindow* popupWindow = popup_browser->window()->GetNativeWindow(); |
BrowserWindowController* popupController = |
[BrowserWindowController browserWindowControllerForWindow:popupWindow]; |