Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1805)

Unified Diff: chrome/browser/tabs/tab_finder.cc

Issue 7134085: Make focus-existing-tab-on-open multi-profile-aware. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/browser_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | chrome/browser/ui/browser_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698