| Index: chrome/browser/ui/browser_finder.cc
|
| diff --git a/chrome/browser/ui/browser_finder.cc b/chrome/browser/ui/browser_finder.cc
|
| index a363c39b3f5a4bdfe814fc54e4161a27f00eb993..1ee6900748e6784e8f9d0148c10a05a4c01d392d 100644
|
| --- a/chrome/browser/ui/browser_finder.cc
|
| +++ b/chrome/browser/ui/browser_finder.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/ui/browser_list.h"
|
| +#include "chrome/browser/ui/browser_list_impl.h"
|
| #include "chrome/browser/ui/browser_window.h"
|
| #include "chrome/browser/ui/tab_contents/tab_contents.h"
|
| #include "chrome/browser/ui/tab_contents/tab_contents_iterator.h"
|
| @@ -178,6 +179,14 @@ Browser* FindLastActiveWithProfile(Profile* profile) {
|
| Browser::FEATURE_NONE, kMatchAny);
|
| }
|
|
|
| +Browser* FindLastActiveWithHostDesktopType(chrome::HostDesktopType type) {
|
| + chrome::BrowserListImpl* browser_list_impl =
|
| + chrome::BrowserListImpl::GetInstance(type);
|
| + if (browser_list_impl)
|
| + return browser_list_impl->GetLastActive();
|
| + return NULL;
|
| +}
|
| +
|
| size_t GetBrowserCount(Profile* profile) {
|
| return GetBrowserCountImpl(profile, kMatchAny);
|
| }
|
|
|