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

Unified Diff: extensions/browser/lazy_background_task_queue.cc

Issue 1012823002: Revert of Make LoadMonitoringExtensionHostQueue remove itself as an ExtensionHost observer at the... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « extensions/browser/extension_host.cc ('k') | extensions/browser/load_monitoring_extension_host_queue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « extensions/browser/extension_host.cc ('k') | extensions/browser/load_monitoring_extension_host_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698