| Index: chrome/browser/ui/browser_finder.cc
|
| diff --git a/chrome/browser/ui/browser_finder.cc b/chrome/browser/ui/browser_finder.cc
|
| index 1174f847c1d3cc4874445e2aae4d80236556bffe..55e548036be27274270e4f61683e66cab6bf553d 100644
|
| --- a/chrome/browser/ui/browser_finder.cc
|
| +++ b/chrome/browser/ui/browser_finder.cc
|
| @@ -197,6 +197,15 @@ Browser* FindLastActiveWithHostDesktopType(HostDesktopType type) {
|
| return NULL;
|
| }
|
|
|
| +size_t GetTotalBrowserCount() {
|
| + size_t count = 0;
|
| + for (HostDesktopType t = HOST_DESKTOP_TYPE_FIRST; t < HOST_DESKTOP_TYPE_COUNT;
|
| + t = static_cast<HostDesktopType>(t + 1)) {
|
| + count += BrowserListImpl::GetInstance(t)->size();
|
| + }
|
| + return count;
|
| +}
|
| +
|
| size_t GetBrowserCount(Profile* profile) {
|
| return GetBrowserCountImpl(profile, kDefaultHostDesktopType, kMatchAny);
|
| }
|
|
|