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

Side by Side Diff: chrome/browser/ui/browser_finder.cc

Issue 11348344: Remove last usages of FindTabbedBrowserDeprecated. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove presubmit check as well. Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/browser_finder.h" 5 #include "chrome/browser/ui/browser_finder.h"
6 6
7 #include "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/browser/ui/browser_list.h" 8 #include "chrome/browser/ui/browser_list.h"
9 #include "chrome/browser/ui/browser_list_impl.h" 9 #include "chrome/browser/ui/browser_list_impl.h"
10 #include "chrome/browser/ui/browser_window.h" 10 #include "chrome/browser/ui/browser_window.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 count++; 120 count++;
121 } 121 }
122 } 122 }
123 return count; 123 return count;
124 } 124 }
125 125
126 } // namespace 126 } // namespace
127 127
128 namespace browser { 128 namespace browser {
129 129
130 Browser* FindTabbedBrowserDeprecated(Profile* profile,
131 bool match_original_profiles) {
132 return FindTabbedBrowser(profile, match_original_profiles,
133 chrome::HOST_DESKTOP_TYPE_NATIVE);
134 }
135
136 Browser* FindTabbedBrowser(Profile* profile, 130 Browser* FindTabbedBrowser(Profile* profile,
137 bool match_original_profiles, 131 bool match_original_profiles,
138 chrome::HostDesktopType type) { 132 chrome::HostDesktopType type) {
139 return FindBrowserWithTabbedOrAnyType(profile, 133 return FindBrowserWithTabbedOrAnyType(profile,
140 type, 134 type,
141 true, 135 true,
142 match_original_profiles); 136 match_original_profiles);
143 } 137 }
144 138
145 Browser* FindOrCreateTabbedBrowser(Profile* profile) { 139 Browser* FindOrCreateTabbedBrowser(Profile* profile) {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 209
216 size_t GetBrowserCount(Profile* profile) { 210 size_t GetBrowserCount(Profile* profile) {
217 return GetBrowserCountImpl(profile, kDefaultHostDesktopType, kMatchAny); 211 return GetBrowserCountImpl(profile, kDefaultHostDesktopType, kMatchAny);
218 } 212 }
219 213
220 size_t GetTabbedBrowserCount(Profile* profile) { 214 size_t GetTabbedBrowserCount(Profile* profile) {
221 return GetBrowserCountImpl(profile, kDefaultHostDesktopType, kMatchTabbed); 215 return GetBrowserCountImpl(profile, kDefaultHostDesktopType, kMatchTabbed);
222 } 216 }
223 217
224 } // namespace chrome 218 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698