| Index: chrome/browser/ui/browser_list.cc
|
| diff --git a/chrome/browser/ui/browser_list.cc b/chrome/browser/ui/browser_list.cc
|
| index 668c32dac556b154bbbced9102b67b36b023e3a2..be11579dd2359840435112537ac8179c225e8e87 100644
|
| --- a/chrome/browser/ui/browser_list.cc
|
| +++ b/chrome/browser/ui/browser_list.cc
|
| @@ -690,6 +690,16 @@ Browser* BrowserList::FindBrowserWithWindow(gfx::NativeWindow window) {
|
| }
|
|
|
| // static
|
| +Browser* BrowserList::FindBrowserWithTabContents(TabContents* tab_contents) {
|
| + DCHECK(tab_contents);
|
| + for (TabContentsIterator it; !it.done(); ++it) {
|
| + if (it->tab_contents() == tab_contents)
|
| + return it.browser();
|
| + }
|
| + return NULL;
|
| +}
|
| +
|
| +// static
|
| size_t BrowserList::GetBrowserCountForType(Profile* profile,
|
| bool match_tabbed) {
|
| size_t result = 0;
|
|
|