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..efcf4cd3e6c51a4495f89c7fb95b3b1d2a8c55e8 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,15 @@ 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) { |
MAD
2012/08/13 21:25:10
no need for {}
robertshield
2012/08/13 21:37:41
Done.
|
+ return browser_list_impl->GetLastActive(); |
+ } |
+ return NULL; |
+} |
+ |
size_t GetBrowserCount(Profile* profile) { |
return GetBrowserCountImpl(profile, kMatchAny); |
} |