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

Unified Diff: apps/app_keep_alive_service.cc

Issue 176363002: Rename Start/EndKeepAlive to Increment/DecrementKeepAliveCount (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase (rename_keep_alive) 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 | « no previous file | apps/app_keep_alive_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_keep_alive_service.cc
diff --git a/apps/app_keep_alive_service.cc b/apps/app_keep_alive_service.cc
index 73bd63acf390d84bed655192a3f355e3949edb8e..6c9bf7befe11eaba112939b5a55875e04d44b929 100644
--- a/apps/app_keep_alive_service.cc
+++ b/apps/app_keep_alive_service.cc
@@ -34,7 +34,7 @@ void AppKeepAliveService::OnAppStart(Profile* profile,
return;
if (running_apps_.insert(app_id).second)
- chrome::StartKeepAlive();
+ chrome::IncrementKeepAliveCount();
}
void AppKeepAliveService::OnAppStop(Profile* profile,
@@ -43,7 +43,7 @@ void AppKeepAliveService::OnAppStop(Profile* profile,
return;
if (running_apps_.erase(app_id))
- chrome::EndKeepAlive();
+ chrome::DecrementKeepAliveCount();
}
void AppKeepAliveService::OnAppActivated(Profile* profile,
@@ -62,7 +62,7 @@ void AppKeepAliveService::OnChromeTerminating() {
if (!base::MessageLoop::current() ||
base::MessageLoop::current()->is_running()) {
while (keep_alives--)
- chrome::EndKeepAlive();
+ chrome::DecrementKeepAliveCount();
}
}
« no previous file with comments | « no previous file | apps/app_keep_alive_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698