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

Unified Diff: chrome/browser/ui/browser_finder.cc

Issue 1198313003: Fix the browser match rules. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/ui/browser_finder.cc
diff --git a/chrome/browser/ui/browser_finder.cc b/chrome/browser/ui/browser_finder.cc
index 4b5fe8eb6a6d62139e25f8a57567f22db9e1bb29..b8259c8fdb797c54c9f807aabfbd3666b14ddf3d 100644
--- a/chrome/browser/ui/browser_finder.cc
+++ b/chrome/browser/ui/browser_finder.cc
@@ -60,7 +60,8 @@ bool BrowserMatches(Browser* browser,
shown_user_id.empty()
? nullptr
: multi_user_util::GetProfileFromUserID(shown_user_id);
- matches_profile &= !shown_profile || shown_profile == profile;
+ matches_profile &= !shown_profile ||
+ shown_profile == profile->GetOriginalProfile();
msw 2015/06/23 17:08:51 Should you use shown_profile->GetOriginalProfile()
msw 2015/06/23 17:08:51 Should this change be limited to when kMatchOrigin
xdai1 2015/06/30 16:16:49 Sorry my fault. Should compare with original profi
}
#endif
« 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