1
Index: src/chrome/browser/ui/browser_finder.cc
2
===================================================================
3
--- src/chrome/browser/ui/browser_finder.cc (revision 165188)
4
+++ src/chrome/browser/ui/browser_finder.cc (working copy)
6
const int kMatchOriginalProfile = 1 << 0;
7
const int kMatchCanSupportWindowFeature = 1 << 1;
8
const int kMatchTabbed = 1 << 2;
9
+const int kMatchNonChromeless = 1 << 3;
11
// Returns true if the specified |browser| matches the specified arguments.
12
// |match_types| is a bitmask dictating what parameters to match:
16
if (match_types & kMatchTabbed)
17
- return browser->is_type_tabbed();
18
+ return browser->is_type_tabbed() &&
19
+ !browser->is_chromeless_mode();
21
+ if (match_types & kMatchNonChromeless)
22
+ return !browser->is_chromeless_mode();
28
chrome::BrowserListImpl::GetInstance(desktop_type);
29
if (!browser_list_impl)
31
- uint32 match_types = kMatchAny;
32
+ uint32 match_types = kMatchNonChromeless;
34
match_types |= kMatchTabbed;
35
if (match_original_profiles)