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

Unified Diff: chrome/browser/lifetime/application_lifetime.h

Issue 1708343002: Add ScopedKeepAlive to c/b/lifetime (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove KeepAliveOrigin::TEST Created 4 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
Index: chrome/browser/lifetime/application_lifetime.h
diff --git a/chrome/browser/lifetime/application_lifetime.h b/chrome/browser/lifetime/application_lifetime.h
index 6f4b951ab5ceb2667c8826cf326d7ee6909e9a63..4930c67010c75984ded3d91b01e87eab18b20f91 100644
--- a/chrome/browser/lifetime/application_lifetime.h
+++ b/chrome/browser/lifetime/application_lifetime.h
@@ -70,6 +70,9 @@ void IncrementKeepAliveCount();
// Should match a previous call to IncrementKeepAliveCount().
void DecrementKeepAliveCount();
+// Returns the current keep alive count.
+int GetKeepAliveCountForTesting();
+
// Returns true if application will continue running after the last Browser
// closes.
bool WillKeepAlive();
« no previous file with comments | « chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.cc ('k') | chrome/browser/lifetime/application_lifetime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698