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..e513e257e17af7820bee9cf36e19c8125a4feb14 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::ViewSet all_views = |
+ GetExtensionProcessManager()->GetAllViews(); |
+ ExtensionProcessManager::ViewSet::const_iterator it = |
+ all_views.find(extension_host->host_contents()->GetRenderViewHost()); |
+ ASSERT_FALSE(it == all_views.end()); |
ASSERT_TRUE(extension_host->IsRenderViewLive()); |
extensions::ProcessMap* process_map = |
browser()->profile()->GetExtensionService()->process_map(); |