diff options
Diffstat (limited to 'chrome/browser/ui/browser_finder.cc')
-rw-r--r-- | chrome/browser/ui/browser_finder.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/ui/browser_finder.cc b/chrome/browser/ui/browser_finder.cc index 081d019..a881f2c 100644 --- a/chrome/browser/ui/browser_finder.cc +++ b/chrome/browser/ui/browser_finder.cc @@ -198,12 +198,12 @@ Browser* FindBrowserWithWebContents(const WebContents* web_contents) { namespace chrome { -Browser* FindLastActiveWithProfile(Profile* profile) { +Browser* FindLastActiveWithProfile(Profile* profile, HostDesktopType type) { + BrowserListImpl* list = BrowserListImpl::GetInstance(type); // We are only interested in last active browsers, so we don't fall back to // all browsers like FindBrowserWith* do. - return FindBrowserMatching( - BrowserList::begin_last_active(), BrowserList::end_last_active(), profile, - Browser::FEATURE_NONE, kMatchAny); + return FindBrowserMatching(list->begin_last_active(), list->end_last_active(), + profile, Browser::FEATURE_NONE, kMatchAny); } Browser* FindLastActiveWithHostDesktopType(HostDesktopType type) { |