summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_list.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/browser_list.h')
-rw-r--r--chrome/browser/browser_list.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/browser_list.h b/chrome/browser/browser_list.h
index e709704..9e52aba 100644
--- a/chrome/browser/browser_list.h
+++ b/chrome/browser/browser_list.h
@@ -53,8 +53,11 @@ class BrowserList {
// 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. That should happen
- // during launch; see comment in BrowserInit::LaunchWithProfile::Launch().
+ // 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.
+ // WARNING #2: this will always be NULL in unit tests run on the bots.
static Browser* GetLastActive();
// Identical in behavior to GetLastActive(), except that the most recently