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

Unified Diff: chrome/browser/ui/panels/panel.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 | « chrome/browser/ui/ash/ash_init.cc ('k') | chrome/browser/ui/views/user_manager_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel.cc
diff --git a/chrome/browser/ui/panels/panel.cc b/chrome/browser/ui/panels/panel.cc
index af991412c3b53c2bedafc418241038fea88a8632..7fe7aa551e428879607ac5fd0c499e19d2318ed4 100644
--- a/chrome/browser/ui/panels/panel.cc
+++ b/chrome/browser/ui/panels/panel.cc
@@ -155,7 +155,7 @@ bool PanelExtensionWindowController::IsVisibleToExtension(
Panel::~Panel() {
DCHECK(!collection_);
// Invoked by native panel destructor. Do not access native_panel_ here.
- chrome::EndKeepAlive(); // Remove shutdown prevention.
+ chrome::DecrementKeepAliveCount(); // Remove shutdown prevention.
}
PanelManager* Panel::manager() const {
@@ -538,7 +538,7 @@ void Panel::Initialize(const GURL& url,
ThemeServiceFactory::GetForProfile(profile_)));
// Prevent the browser process from shutting down while this window is open.
- chrome::StartKeepAlive();
+ chrome::IncrementKeepAliveCount();
UpdateAppIcon();
}
« no previous file with comments | « chrome/browser/ui/ash/ash_init.cc ('k') | chrome/browser/ui/views/user_manager_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698