Index: chrome/browser/chrome_content_browser_client.cc |
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc |
index ca207f23a4046c98e23259b8ad451afe5b345a59..dc56a97c60507172d9082c96f5876d559b0009f9 100644 |
--- a/chrome/browser/chrome_content_browser_client.cc |
+++ b/chrome/browser/chrome_content_browser_client.cc |
@@ -83,7 +83,6 @@ void InitRenderViewHostForExtensions(RenderViewHost* render_view_host) { |
// chrome-extension:// URL for their site, so we can ignore that wrinkle here. |
SiteInstance* site_instance = render_view_host->site_instance(); |
const GURL& site = site_instance->site(); |
- RenderProcessHost* process = render_view_host->process(); |
if (!site.SchemeIs(chrome::kExtensionScheme)) |
return; |
@@ -110,6 +109,8 @@ void InitRenderViewHostForExtensions(RenderViewHost* render_view_host) { |
process_manager->RegisterExtensionSiteInstance(site_instance->id(), |
extension->id()); |
+ RenderProcessHost* process = render_view_host->process(); |
+ |
if (extension->is_app()) { |
render_view_host->Send( |
new ExtensionMsg_ActivateApplication(extension->id())); |