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

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

Issue 1661713002: Remove the rest of HostDesktopType from c/b/ui/browser_finder.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-11
Patch Set: linux adl Created 4 years, 11 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 | « chrome/browser/ui/browser_finder.h ('k') | chrome/browser/ui/browser_finder_chromeos_unittest.cc » ('j') | 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 159e1eb2cf16451e920f7ceb83e64ea0f1c66321..66d11e97d38380b4e7716b39bd592ed3b78bfe48 100644
--- a/chrome/browser/ui/browser_finder.cc
+++ b/chrome/browser/ui/browser_finder.cc
@@ -108,7 +108,6 @@ Browser* FindBrowserMatching(const T& begin,
}
Browser* FindBrowserWithTabbedOrAnyType(Profile* profile,
- chrome::HostDesktopType desktop_type,
bool match_tabbed,
bool match_original_profiles) {
BrowserList* browser_list_impl = BrowserList::GetInstance();
@@ -133,7 +132,6 @@ Browser* FindBrowserWithTabbedOrAnyType(Profile* profile,
}
size_t GetBrowserCountImpl(Profile* profile,
- chrome::HostDesktopType desktop_type,
uint32_t match_types) {
BrowserList* browser_list_impl = BrowserList::GetInstance();
size_t count = 0;
@@ -152,26 +150,19 @@ size_t GetBrowserCountImpl(Profile* profile,
namespace chrome {
Browser* FindTabbedBrowser(Profile* profile,
- bool match_original_profiles,
- HostDesktopType type) {
- return FindBrowserWithTabbedOrAnyType(profile,
- type,
- true,
- match_original_profiles);
+ bool match_original_profiles) {
+ return FindBrowserWithTabbedOrAnyType(profile, true, match_original_profiles);
}
Browser* FindAnyBrowser(Profile* profile,
- bool match_original_profiles,
- HostDesktopType type) {
+ bool match_original_profiles) {
return FindBrowserWithTabbedOrAnyType(profile,
- type,
false,
match_original_profiles);
}
-Browser* FindBrowserWithProfile(Profile* profile,
- HostDesktopType desktop_type) {
- return FindBrowserWithTabbedOrAnyType(profile, desktop_type, false, false);
+Browser* FindBrowserWithProfile(Profile* profile) {
+ return FindBrowserWithTabbedOrAnyType(profile, false, false);
}
Browser* FindBrowserWithID(SessionID::id_type desired_id) {
@@ -220,21 +211,12 @@ size_t GetTotalBrowserCount() {
return BrowserList::GetInstance()->size();
}
-size_t GetTotalBrowserCountForProfile(Profile* profile) {
- size_t count = 0;
- for (HostDesktopType t = HOST_DESKTOP_TYPE_FIRST; t < HOST_DESKTOP_TYPE_COUNT;
- t = static_cast<HostDesktopType>(t + 1)) {
- count += GetBrowserCount(profile, t);
- }
- return count;
-}
-
-size_t GetBrowserCount(Profile* profile, HostDesktopType type) {
- return GetBrowserCountImpl(profile, type, kMatchAny);
+size_t GetBrowserCount(Profile* profile) {
+ return GetBrowserCountImpl(profile, kMatchAny);
}
-size_t GetTabbedBrowserCount(Profile* profile, HostDesktopType type) {
- return GetBrowserCountImpl(profile, type, kMatchTabbed);
+size_t GetTabbedBrowserCount(Profile* profile) {
+ return GetBrowserCountImpl(profile, kMatchTabbed);
}
} // namespace chrome
« no previous file with comments | « chrome/browser/ui/browser_finder.h ('k') | chrome/browser/ui/browser_finder_chromeos_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698