Move ExtensionHost into extensions namespace

BUG=139042,117261


Review URL: https://chromiumcodereview.appspot.com/10824030

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149295 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/extensions/extension_host.cc b/chrome/browser/extensions/extension_host.cc
index 3d36a0b..88920d2 100644
--- a/chrome/browser/extensions/extension_host.cc
+++ b/chrome/browser/extensions/extension_host.cc
@@ -60,7 +60,8 @@
 using content::RenderViewHost;
 using content::SiteInstance;
 using content::WebContents;
-using extensions::ExtensionSystem;
+
+namespace extensions {
 
 // Helper class that rate-limits the creation of renderer processes for
 // ExtensionHosts, to avoid blocking the UI.
@@ -122,7 +123,7 @@
 ////////////////
 // ExtensionHost
 
-ExtensionHost::ExtensionHost(const extensions::Extension* extension,
+ExtensionHost::ExtensionHost(const Extension* extension,
                              SiteInstance* site_instance,
                              const GURL& url,
                              chrome::ViewType host_type)
@@ -245,7 +246,7 @@
       !profile_->GetExtensionService()->IsBackgroundPageReady(extension_)) {
     // Make sure the background page loads before any others.
     registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_BACKGROUND_PAGE_READY,
-                   content::Source<extensions::Extension>(extension_));
+                   content::Source<Extension>(extension_));
     return;
   }
 
@@ -275,9 +276,8 @@
       // sent. NULL it out so that dirty pointer issues don't arise in cases
       // when multiple ExtensionHost objects pointing to the same Extension are
       // present.
-      if (extension_ ==
-          content::Details<extensions::UnloadedExtensionInfo>(
-              details)->extension) {
+      if (extension_ == content::Details<UnloadedExtensionInfo>(details)->
+          extension) {
         extension_ = NULL;
       }
       break;
@@ -599,3 +599,5 @@
       content::Source<Profile>(profile_),
       content::Details<ExtensionHost>(this));
 }
+
+}  // namespace extensions