Index: chrome/browser/app_controller_mac.mm |
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm |
index b8fac080a414f47e3566e6ecb0ce39e05aed84e0..ba43ca5c71e3be52409bec8b49cbe7cad0263801 100644 |
--- a/chrome/browser/app_controller_mac.mm |
+++ b/chrome/browser/app_controller_mac.mm |
@@ -128,8 +128,7 @@ bool g_is_opening_new_window = false; |
// there are only minimized windows), it will unminimize it. |
Browser* ActivateBrowser(Profile* profile) { |
Browser* browser = chrome::FindLastActiveWithProfile( |
- profile->IsGuestSession() ? profile->GetOffTheRecordProfile() : profile, |
- chrome::HOST_DESKTOP_TYPE_NATIVE); |
+ profile->IsGuestSession() ? profile->GetOffTheRecordProfile() : profile); |
if (browser) |
browser->window()->Activate(); |
return browser; |
@@ -777,8 +776,7 @@ class AppControllerProfileObserver : public ProfileInfoCacheObserver { |
startupComplete_ = YES; |
- Browser* browser = |
- FindLastActiveWithHostDesktopType(chrome::HOST_DESKTOP_TYPE_NATIVE); |
+ Browser* browser = chrome::FindLastActive(); |
content::WebContents* activeWebContents = nullptr; |
if (browser) |
activeWebContents = browser->tab_strip_model()->GetActiveWebContents(); |