summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_list.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-31 03:58:56 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-31 03:58:56 +0000
commitaec0c94c6d5a0cc97254c38d57b97f3d7292ea7e (patch)
tree006a54b0c0381307efb294048fde339d2273455b /chrome/browser/browser_list.h
parentbfa69d49b17f33635c79f79819b90a8d2089c4b3 (diff)
downloadchromium_src-aec0c94c6d5a0cc97254c38d57b97f3d7292ea7e.zip
chromium_src-aec0c94c6d5a0cc97254c38d57b97f3d7292ea7e.tar.gz
chromium_src-aec0c94c6d5a0cc97254c38d57b97f3d7292ea7e.tar.bz2
roll back 30659 since it still breaks browser_tests
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30661 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_list.h')
-rw-r--r--chrome/browser/browser_list.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/browser_list.h b/chrome/browser/browser_list.h
index 45a0246..b510b8c 100644
--- a/chrome/browser/browser_list.h
+++ b/chrome/browser/browser_list.h
@@ -58,14 +58,14 @@ class BrowserList {
// open browser owned by |profile| is returned. If none exist, returns NULL.
static Browser* GetLastActiveWithProfile(Profile *profile);
- // Find an existing browser window with the provided type. Searches in the
- // order of last activation. Only browsers that have been active can be
- // returned. Returns NULL if no such browser currently exists.
+ // Find an existing browser window with the provided type. If the last active
+ // has the right type, it is returned. Otherwise, the next available browser
+ // is returned. Returns NULL if no such browser currently exists.
static Browser* FindBrowserWithType(Profile* p, Browser::Type t);
- // Find an existing browser window with the provided profile. Searches in the
- // order of last activation. Only browsers that have been active can be
- // returned. Returns NULL if no such browser currently exists.
+ // Find an existing browser window with the provided profile. If the last
+ // active has the right profile, it is returned. Returns NULL if no such
+ // browser currently exists.
static Browser* FindBrowserWithProfile(Profile* p);
// Find an existing browser with the provided ID. Returns NULL if no such