| Index: chrome/browser/extensions/lazy_background_task_queue.cc
|
| diff --git a/chrome/browser/extensions/lazy_background_task_queue.cc b/chrome/browser/extensions/lazy_background_task_queue.cc
|
| index 6c69ef128b63530a949e1be65210092d3bfd49b5..7c083a5c9b4aefa514d6c8799195d577273420be 100644
|
| --- a/chrome/browser/extensions/lazy_background_task_queue.cc
|
| +++ b/chrome/browser/extensions/lazy_background_task_queue.cc
|
| @@ -50,6 +50,8 @@ bool LazyBackgroundTaskQueue::ShouldEnqueueTask(
|
| pm->GetBackgroundHostForExtension(extension->id());
|
| if (!background_host || !background_host->did_stop_loading())
|
| return true;
|
| + if (pm->IsBackgroundHostClosing(extension->id()))
|
| + pm->CancelSuspend(extension);
|
| }
|
|
|
| return false;
|
| @@ -92,8 +94,7 @@ void LazyBackgroundTaskQueue::StartLazyBackgroundPage(
|
| extensions()->GetByID(extension_id);
|
| if (extension) {
|
| DCHECK(extension->has_lazy_background_page());
|
| - pm->IncrementLazyKeepaliveCount(
|
| - extension, ExtensionProcessManager::DONT_CANCEL_SUSPEND);
|
| + pm->IncrementLazyKeepaliveCount(extension);
|
| pm->CreateBackgroundHost(extension, extension->GetBackgroundURL());
|
| }
|
|
|
|
|