Index: chrome/browser/extensions/extension_crash_recovery_browsertest.cc |
diff --git a/chrome/browser/extensions/extension_crash_recovery_browsertest.cc b/chrome/browser/extensions/extension_crash_recovery_browsertest.cc |
index 42cbc45863d50fef371abdf097f7689f56845413..11b8065a893611ea165520179544041e7e0274f1 100644 |
--- a/chrome/browser/extensions/extension_crash_recovery_browsertest.cc |
+++ b/chrome/browser/extensions/extension_crash_recovery_browsertest.cc |
@@ -92,7 +92,11 @@ class ExtensionCrashRecoveryTest : public ExtensionBrowserTest { |
ExtensionHost* extension_host = GetExtensionProcessManager()-> |
GetBackgroundHostForExtension(extension_id); |
ASSERT_TRUE(extension_host); |
- ASSERT_TRUE(GetExtensionProcessManager()->HasExtensionHost(extension_host)); |
+ ExtensionProcessManager::ContentsSet all_contents = |
+ GetExtensionProcessManager()->GetAllContents(); |
+ ExtensionProcessManager::ContentsSet::const_iterator it = |
+ all_contents.find(extension_host->host_contents()); |
+ ASSERT_FALSE(it == all_contents.end()); |
ASSERT_TRUE(extension_host->IsRenderViewLive()); |
extensions::ProcessMap* process_map = |
browser()->profile()->GetExtensionService()->process_map(); |