summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_list.h
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-27 19:35:24 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-27 19:35:24 +0000
commit76784eae59560929b650fe907e20e8c7cdfb5b56 (patch)
tree2825c9ac56925d3a8f5c3c59ffafe592f3d63381 /chrome/browser/browser_list.h
parent9fe301de451cc2e5b2676e7cf7199dd3253711a5 (diff)
downloadchromium_src-76784eae59560929b650fe907e20e8c7cdfb5b56.zip
chromium_src-76784eae59560929b650fe907e20e8c7cdfb5b56.tar.gz
chromium_src-76784eae59560929b650fe907e20e8c7cdfb5b56.tar.bz2
Adds comments to BrowserList::GetLastActive that it might return NULL
when there are browsers. BUG=none TEST=none Review URL: http://codereview.chromium.org/113912 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17009 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_list.h')
-rw-r--r--chrome/browser/browser_list.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/browser_list.h b/chrome/browser/browser_list.h
index f167fdc..38d3328 100644
--- a/chrome/browser/browser_list.h
+++ b/chrome/browser/browser_list.h
@@ -48,6 +48,11 @@ class BrowserList {
// Returns the Browser object whose window was most recently active. If the
// most recently open Browser's window was closed, returns the first Browser
// in the list. If no Browsers exist, returns NULL.
+ //
+ // WARNING: this is NULL until a browser becomes active. If during startup
+ // a browser does not become active (perhaps the user launches Chrome, then
+ // clicks on another app before the first browser window appears) then this
+ // returns NULL.
static Browser* GetLastActive();
// Identical in behavior to GetLastActive(), except that the most recently