Index: extensions/browser/lazy_background_task_queue.cc |
diff --git a/extensions/browser/lazy_background_task_queue.cc b/extensions/browser/lazy_background_task_queue.cc |
index 6c9b410f8498dd3093f76b83f1b188130dec7ae2..754e59264b50b951f51ed430804d109a5e66ec95 100644 |
--- a/extensions/browser/lazy_background_task_queue.cc |
+++ b/extensions/browser/lazy_background_task_queue.cc |
@@ -49,7 +49,7 @@ |
ProcessManager* pm = ProcessManager::Get(browser_context); |
ExtensionHost* background_host = |
pm->GetBackgroundHostForExtension(extension->id()); |
- if (!background_host || !background_host->has_loaded_once()) |
+ if (!background_host || !background_host->did_stop_loading()) |
return true; |
if (pm->IsBackgroundHostClosing(extension->id())) |
pm->CancelSuspend(extension); |
@@ -142,7 +142,7 @@ |
ExtensionHost* host = |
content::Details<ExtensionHost>(details).ptr(); |
if (host->extension_host_type() == VIEW_TYPE_EXTENSION_BACKGROUND_PAGE) { |
- CHECK(host->has_loaded_once()); |
+ CHECK(host->did_stop_loading()); |
ProcessPendingTasks(host, host->browser_context(), host->extension()); |
} |
break; |