Index: chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc |
diff --git a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc |
index 491c8d48e597060c1111fe812ba4e03cb775caec..27993963b5b186c3a2b789f4a18a99d923845f79 100644 |
--- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc |
+++ b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc |
@@ -280,16 +280,7 @@ WebUIController* NewWebUI<WelcomeUI>(WebUI* web_ui, const GURL& url) { |
// Only create ExtensionWebUI for URLs that are allowed extension bindings, |
// hosted by actual tabs. |
bool NeedsExtensionWebUI(Profile* profile, const GURL& url) { |
- if (!profile) |
- return false; |
- |
- const extensions::Extension* extension = |
- extensions::ExtensionRegistry::Get(profile)->enabled_extensions(). |
- GetExtensionOrAppByURL(url); |
- // Allow bindings for all packaged extensions and component hosted apps. |
- return extension && |
- (!extension->is_hosted_app() || |
- extension->location() == extensions::Manifest::COMPONENT); |
+ return false; |
} |
#endif |