Index: extensions/browser/process_manager.cc |
diff --git a/extensions/browser/process_manager.cc b/extensions/browser/process_manager.cc |
index 9e5f0c6561cc25f7785649795275e4402d7f9707..b110aa3b6cf67825049f7aad05795debafb3f6e4 100644 |
--- a/extensions/browser/process_manager.cc |
+++ b/extensions/browser/process_manager.cc |
@@ -436,7 +436,10 @@ void ProcessManager::DecrementLazyKeepaliveCount(const Extension* extension) { |
void ProcessManager::DecrementLazyKeepaliveCount( |
const std::string& extension_id) { |
int& count = background_page_data_[extension_id].lazy_keepalive_count; |
- DCHECK_GT(count, 0); |
+ DCHECK(count > 0 || |
+ !ExtensionRegistry::Get(GetBrowserContext()) |
+ ->enabled_extensions() |
+ .Contains(extension_id)); |
// If we reach a zero keepalive count when the lazy background page is about |
// to be closed, incrementing close_sequence_id will cancel the close |