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

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: Make focus-existing-tab-on-open multi-profile aware. 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 | no next file » | 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 88698)
+++ chrome/browser/tabs/tab_finder.cc (working copy)
@@ -95,7 +95,8 @@
// Then check other browsers.
for (BrowserList::const_iterator i = BrowserList::begin();
i != BrowserList::end(); ++i) {
- if (!(*i)->profile()->IsOffTheRecord()) {
+ if (!(*i)->profile()->IsOffTheRecord() &&
+ (*i)->profile()->IsSameProfile(browser->profile())) {
tab_in_browser = FindTabInBrowser(*i, url);
if (tab_in_browser) {
*existing_browser = *i;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698