Index: chrome/browser/extensions/extension_view_host_factory.cc |
diff --git a/chrome/browser/extensions/extension_view_host_factory.cc b/chrome/browser/extensions/extension_view_host_factory.cc |
index 38e2e73a98293ca4d7993e4ab5098c1d494f95c1..b8565c22822b72eb898bc8801b63f5c1adb7a736 100644 |
--- a/chrome/browser/extensions/extension_view_host_factory.cc |
+++ b/chrome/browser/extensions/extension_view_host_factory.cc |
@@ -80,9 +80,6 @@ const Extension* GetExtensionForUrl(Profile* profile, const GURL& url) { |
if (!registry) |
return NULL; |
std::string extension_id = url.host(); |
- if (url.SchemeIs(content::kChromeUIScheme) && |
- url.host() == chrome::kChromeUIExtensionInfoHost) |
- extension_id = url.path().substr(1); |
return registry->enabled_extensions().GetByID(extension_id); |
} |