| 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;
|
| }
|
|
|