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

Unified Diff: chrome/browser/app_controller_mac.h

Issue 1778873002: Replace Increment/DecrementKeepAliveCount by ScopedKeepAlives (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@KAObserver
Patch Set: replace the commented dcheck by a dlog Created 4 years, 9 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 | « no previous file | chrome/browser/app_controller_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/app_controller_mac.h
diff --git a/chrome/browser/app_controller_mac.h b/chrome/browser/app_controller_mac.h
index b5febc94677c58a7eef6916bb019dc5f06ccf09d..432e12072480ee51e07b413ccc87f48aabf92f41 100644
--- a/chrome/browser/app_controller_mac.h
+++ b/chrome/browser/app_controller_mac.h
@@ -29,6 +29,7 @@ class HistoryMenuBridge;
class Profile;
@class ProfileMenuController;
class QuitWithAppsController;
+class ScopedKeepAlive;
namespace ui {
class WorkAreaWatcherObserver;
@@ -107,6 +108,9 @@ class WorkAreaWatcherObserver;
// This will be true after receiving a NSWorkspaceWillPowerOffNotification.
BOOL isPoweringOff_;
+
+ // Request to keep the browser alive during that object's lifetime.
+ scoped_ptr<ScopedKeepAlive> keep_alive_;
}
@property(readonly, nonatomic) BOOL startupComplete;
« no previous file with comments | « no previous file | chrome/browser/app_controller_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698