Index: chrome/browser/tabs/tab_finder.cc |
=================================================================== |
--- chrome/browser/tabs/tab_finder.cc (revision 88539) |
+++ chrome/browser/tabs/tab_finder.cc (working copy) |
@@ -92,9 +92,12 @@ |
return tab_in_browser; |
} |
+ std::vector<Browser*> browsers = BrowserList::GetBrowsersWithProfile( |
+ browser->profile()); |
+ |
// Then check other browsers. |
- for (BrowserList::const_iterator i = BrowserList::begin(); |
- i != BrowserList::end(); ++i) { |
+ for (BrowserList::const_iterator i = browsers.begin(); |
+ i != browsers.end(); ++i) { |
if (!(*i)->profile()->IsOffTheRecord()) { |
jianli
2011/06/13 18:55:39
I think it will be simpler to check for the matchi
|
tab_in_browser = FindTabInBrowser(*i, url); |
if (tab_in_browser) { |