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

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm

Issue 1637943003: Remove HostDesktopType from BrowserList::GetInstance() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screen-wrapper-land
Patch Set: mac2 Created 4 years, 11 months 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 | « chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc ('k') | chrome/browser/ui/host_desktop.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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];
« no previous file with comments | « chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc ('k') | chrome/browser/ui/host_desktop.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698