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

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: interactive_ui_tests 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..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();

Powered by Google App Engine
This is Rietveld 408576698