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

Unified Diff: chrome/browser/extensions/extension_crash_recovery_browsertest.cc

Issue 10113005: Remove EPM:all_hosts_ and use all_extension_views_ instead. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Comments addressed Created 8 years, 8 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
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();

Powered by Google App Engine
This is Rietveld 408576698