summaryrefslogtreecommitdiffstats
path: root/apps/app_window.cc
diff options
context:
space:
mode:
authorjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-25 15:17:27 +0000
committerjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-25 15:17:27 +0000
commit9a718b2ecbb7fc595d0b98dba00ff662a1f331b7 (patch)
tree96489df558e3dc478bb82e596e7c5e1cf298480d /apps/app_window.cc
parent72892d8f094f350796c1bee52a8ba9e6a3b227bf (diff)
downloadchromium_src-9a718b2ecbb7fc595d0b98dba00ff662a1f331b7.zip
chromium_src-9a718b2ecbb7fc595d0b98dba00ff662a1f331b7.tar.gz
chromium_src-9a718b2ecbb7fc595d0b98dba00ff662a1f331b7.tar.bz2
Rename Start/EndKeepAlive to Increment/DecrementKeepAliveCount
Keep alive is implemented as a reference count. This name makes it clear that a call to EndKeepAlive does not immediately end keep-alive, which came up in code review. BUG=345918 TEST=compiles, no functional changes Review URL: https://codereview.chromium.org/176363002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253165 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/app_window.cc')
-rw-r--r--apps/app_window.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_window.cc b/apps/app_window.cc
index 1c6d286..6a4f7db 100644
--- a/apps/app_window.cc
+++ b/apps/app_window.cc
@@ -232,7 +232,7 @@ void AppWindow::Init(const GURL& url,
}
// Prevent the browser process from shutting down while this window is open.
- AppsClient::Get()->StartKeepAlive();
+ AppsClient::Get()->IncrementKeepAliveCount();
UpdateExtensionAppIcon();
@@ -245,7 +245,7 @@ AppWindow::~AppWindow() {
registrar_.RemoveAll();
// Remove shutdown prevention.
- AppsClient::Get()->EndKeepAlive();
+ AppsClient::Get()->DecrementKeepAliveCount();
}
void AppWindow::RequestMediaAccessPermission(