~ps-jenkins/unity-chromium-extension/trusty-proposed

« back to all changes in this revision

Viewing changes to chromium-patches/stable-24.0.1312.52/fix-1034541.patch

  • Committer: CI bot
  • Author(s): Justin McPherson
  • Date: 2014-02-17 23:43:23 UTC
  • mfrom: (239.2.1 remove-patches)
  • Revision ID: ps-jenkins@lists.canonical.com-20140217234323-4pw656wfrooeinde
Chromium patches are no longer maintained in this repo, remove them to avoid confusion. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
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)
5
 
@@ -33,6 +33,7 @@
6
 
 const int kMatchOriginalProfile         = 1 << 0;
7
 
 const int kMatchCanSupportWindowFeature = 1 << 1;
8
 
 const int kMatchTabbed                  = 1 << 2;
9
 
+const int kMatchNonChromeless           = 1 << 3;
10
 
 
11
 
 // Returns true if the specified |browser| matches the specified arguments.
12
 
 // |match_types| is a bitmask dictating what parameters to match:
13
 
@@ -60,8 +61,12 @@
14
 
   }
15
 
 
16
 
   if (match_types & kMatchTabbed)
17
 
-    return browser->is_type_tabbed();
18
 
+    return browser->is_type_tabbed() &&
19
 
+      !browser->is_chromeless_mode();
20
 
 
21
 
+  if (match_types & kMatchNonChromeless)
22
 
+    return !browser->is_chromeless_mode();
23
 
+
24
 
   return true;
25
 
 }
26
 
 
27
 
@@ -89,7 +94,7 @@
28
 
       chrome::BrowserListImpl::GetInstance(desktop_type);
29
 
   if (!browser_list_impl)
30
 
     return NULL;
31
 
-  uint32 match_types = kMatchAny;
32
 
+  uint32 match_types = kMatchNonChromeless;
33
 
   if (match_tabbed)
34
 
     match_types |= kMatchTabbed;
35
 
   if (match_original_profiles)