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

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

Issue 730983002: Remove dead script_badge code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mm Created 6 years 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
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/resources/extensions/extension_info.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/resources/extensions/extension_info.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698