Get rid of extensions dependency from content\browser.

BUG=76789
Review URL: http://codereview.chromium.org/6693054

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80315 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/browser/site_instance.cc b/content/browser/site_instance.cc
index 26565a1..3503eac1 100644
--- a/content/browser/site_instance.cc
+++ b/content/browser/site_instance.cc
@@ -4,7 +4,6 @@
 
 #include "content/browser/site_instance.h"
 
-#include "chrome/browser/extensions/extension_service.h"
 #include "chrome/browser/renderer_host/browser_render_process_host.h"
 #include "chrome/common/url_constants.h"
 #include "content/browser/browsing_instance.h"
@@ -190,18 +189,7 @@
 
 /*static*/
 GURL SiteInstance::GetEffectiveURL(Profile* profile, const GURL& url) {
-  if (!profile || !profile->GetExtensionService())
-    return url;
-
-  const Extension* extension =
-      profile->GetExtensionService()->GetExtensionByWebExtent(url);
-  if (extension) {
-    // If the URL is part of an extension's web extent, convert it to an
-    // extension URL.
-    return extension->GetResourceURL(url.path());
-  } else {
-    return url;
-  }
+  return content::GetContentClient()->browser()->GetEffectiveURL(profile, url);
 }
 
 /*static*/