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

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

Issue 160963002: Reset UnloadController::is_attempting_to_close_browser_ when the download-in-progress prompt is can… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sky comments Created 6 years, 10 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 | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/fast_unload_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/fast_unload_controller.h
diff --git a/chrome/browser/ui/fast_unload_controller.h b/chrome/browser/ui/fast_unload_controller.h
index dbcee928ab2d8f89cdccee92b86fbf0066a9047f..473ae383338143f1b2c86a0c27cdd48cc91b6b8d 100644
--- a/chrome/browser/ui/fast_unload_controller.h
+++ b/chrome/browser/ui/fast_unload_controller.h
@@ -109,6 +109,10 @@ class FastUnloadController : public content::NotificationObserver,
// Returns true if all tabs' beforeunload/unload events have fired.
bool HasCompletedUnloadProcessing() const;
+ // Clears all the state associated with processing tabs' beforeunload/unload
+ // events since the user cancelled closing the window.
+ void CancelWindowClose();
+
private:
// Overridden from content::NotificationObserver:
virtual void Observe(int type,
@@ -138,10 +142,6 @@ class FastUnloadController : public content::NotificationObserver,
// Processes the next tab that needs it's beforeunload/unload event fired.
void ProcessPendingTabs();
- // Clears all the state associated with processing tabs' beforeunload/unload
- // events since the user cancelled closing the window.
- void CancelWindowClose();
-
// Cleans up state appropriately when we are trying to close the
// browser or close a tab in the background. We also use this in the
// cases where a tab crashes or hangs even if the
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/fast_unload_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698