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

Unified Diff: chrome/browser/printing/print_dialog_cloud.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
Index: chrome/browser/printing/print_dialog_cloud.cc
diff --git a/chrome/browser/printing/print_dialog_cloud.cc b/chrome/browser/printing/print_dialog_cloud.cc
index 960d99ff7fa18620dd28dd1e43ab96124dc195f6..d6c2535b31de8f383b83c67761349b539f907cad 100644
--- a/chrome/browser/printing/print_dialog_cloud.cc
+++ b/chrome/browser/printing/print_dialog_cloud.cc
@@ -540,7 +540,7 @@ void CloudPrintWebDialogDelegate::Init(content::BrowserContext* browser_context,
// If we're not modal we can show the dialog with no browser.
// We need this to keep Chrome alive while our dialog is up.
if (!modal_parent_ && keep_alive_when_non_modal_)
- chrome::StartKeepAlive();
+ chrome::IncrementKeepAliveCount();
}
CloudPrintWebDialogDelegate::~CloudPrintWebDialogDelegate() {
@@ -592,8 +592,8 @@ void CloudPrintWebDialogDelegate::OnDialogClosed(
// End the keep-alive so that Chrome can exit.
if (!modal_parent_ && keep_alive_when_non_modal_) {
// Post to prevent recursive call tho this function.
- base::MessageLoop::current()->PostTask(FROM_HERE,
- base::Bind(&chrome::EndKeepAlive));
+ base::MessageLoop::current()->PostTask(
+ FROM_HERE, base::Bind(&chrome::DecrementKeepAliveCount));
}
delete this;
}

Powered by Google App Engine
This is Rietveld 408576698