diff options
Diffstat (limited to 'chrome/browser/extensions/lazy_background_task_queue.cc')
-rw-r--r-- | chrome/browser/extensions/lazy_background_task_queue.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/extensions/lazy_background_task_queue.cc b/chrome/browser/extensions/lazy_background_task_queue.cc index 49bc222..89bf38e 100644 --- a/chrome/browser/extensions/lazy_background_task_queue.cc +++ b/chrome/browser/extensions/lazy_background_task_queue.cc @@ -48,9 +48,10 @@ bool LazyBackgroundTaskQueue::ShouldEnqueueTask( ExtensionSystem::Get(profile)->process_manager(); ExtensionHost* background_host = pm->GetBackgroundHostForExtension(extension->id()); - if (!background_host || !background_host->did_stop_loading() || - pm->IsBackgroundHostClosing(extension->id())) + if (!background_host || !background_host->did_stop_loading()) return true; + if (pm->IsBackgroundHostClosing(extension->id())) + pm->CancelSuspend(extension); } return false; |