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

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

Issue 10836218: Remove BrowserList::GetLastActive calls from window_sizer.cc et al. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/cocoa/browser_window_controller.mm » ('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 a363c39b3f5a4bdfe814fc54e4161a27f00eb993..1ee6900748e6784e8f9d0148c10a05a4c01d392d 100644
--- a/chrome/browser/ui/browser_finder.cc
+++ b/chrome/browser/ui/browser_finder.cc
@@ -6,6 +6,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser_list.h"
+#include "chrome/browser/ui/browser_list_impl.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/tab_contents/tab_contents.h"
#include "chrome/browser/ui/tab_contents/tab_contents_iterator.h"
@@ -178,6 +179,14 @@ Browser* FindLastActiveWithProfile(Profile* profile) {
Browser::FEATURE_NONE, kMatchAny);
}
+Browser* FindLastActiveWithHostDesktopType(chrome::HostDesktopType type) {
+ chrome::BrowserListImpl* browser_list_impl =
+ chrome::BrowserListImpl::GetInstance(type);
+ if (browser_list_impl)
+ return browser_list_impl->GetLastActive();
+ return NULL;
+}
+
size_t GetBrowserCount(Profile* profile) {
return GetBrowserCountImpl(profile, kMatchAny);
}
« no previous file with comments | « chrome/browser/ui/browser_finder.h ('k') | chrome/browser/ui/cocoa/browser_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698