Chromium Code Reviews| Index: chrome/browser/ui/browser.h |
| diff --git a/chrome/browser/ui/browser.h b/chrome/browser/ui/browser.h |
| index 16b0aba7ae843944859c9eaaa15332d89266c647..b139e6324e9459887754cac43209f7d417691414 100644 |
| --- a/chrome/browser/ui/browser.h |
| +++ b/chrome/browser/ui/browser.h |
| @@ -909,8 +909,10 @@ class Browser : public TabHandlerDelegate, |
| // Cleans up state appropriately when we are trying to close the browser and |
| // the tab has finished firing its unload handler. We also use this in the |
| // cases where a tab crashes or hangs even if the beforeunload/unload haven't |
| - // successfully fired. |
| - void ClearUnloadState(TabContents* tab); |
| + // successfully fired. If |process_now| is true |ProcessPendingTabs| is |
| + // invoked immediately, otherwise it is invoked after a delay (PostTask). |
| + // Typically you'll want to pass in true for |process_now|. |
|
brettw
2011/01/13 06:42:16
It might be nice if this mentioned why you might w
|
| + void ClearUnloadState(TabContents* tab, bool process_now); |
| // In-progress download termination handling ///////////////////////////////// |