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

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

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 | « no previous file | chrome/browser/ui/browser_finder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_finder.h
diff --git a/chrome/browser/ui/browser_finder.h b/chrome/browser/ui/browser_finder.h
index 731806cd793a34534e9dc5f088da3b13b274c109..34d3f685c0c82d29c6464cfcf19b40d3a6f1809a 100644
--- a/chrome/browser/ui/browser_finder.h
+++ b/chrome/browser/ui/browser_finder.h
@@ -65,6 +65,12 @@ Browser* FindBrowserForController(
// NULL. WARNING: see warnings in BrowserList::GetLastActive().
Browser* FindLastActiveWithProfile(Profile* profile);
+// Identical in behavior to BrowserList::GetLastActive(), except that the most
+// recently open browser owned on the desktop described by |type| is returned.
+// If none exist, returns NULL. WARNING: see warnings in
+// BrowserList::GetLastActive().
+Browser* FindLastActiveWithHostDesktopType(chrome::HostDesktopType type);
+
// Returns the number of browsers with the Profile |profile|.
size_t GetBrowserCount(Profile* profile);
« no previous file with comments | « no previous file | chrome/browser/ui/browser_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698