Index: content/browser/tab_contents/render_view_host_manager.cc |
diff --git a/content/browser/tab_contents/render_view_host_manager.cc b/content/browser/tab_contents/render_view_host_manager.cc |
index b46ea7caa53375246c461dfd42bbd26eb38aeb0f..47bae3d1a9d1efc11392870a259e2323ea2dc9ff 100644 |
--- a/content/browser/tab_contents/render_view_host_manager.cc |
+++ b/content/browser/tab_contents/render_view_host_manager.cc |
@@ -485,11 +485,16 @@ bool RenderViewHostManager::InitRenderView(RenderViewHost* render_view_host, |
if (pending_web_ui_.get()) |
render_view_host->AllowBindings(pending_web_ui_->bindings()); |
- // Tell the RenderView whether it will be used for an extension process. |
+ // Tell the RenderView whether it will be used for an extension process or an |
+ // installed app. |
Profile* profile = delegate_->GetControllerForRenderManager().profile(); |
- bool is_extension_process = profile->GetExtensionService() && |
- profile->GetExtensionService()->ExtensionBindingsAllowed(entry.url()); |
- render_view_host->set_is_extension_process(is_extension_process); |
+ ExtensionService* service = profile->GetExtensionService(); |
+ if (service) { |
+ bool is_extension_process = service->ExtensionBindingsAllowed(entry.url()); |
+ render_view_host->set_is_extension_process(is_extension_process); |
+ const Extension* installed_app = service->GetInstalledApp(entry.url()); |
+ render_view_host->set_installed_app(installed_app); |
+ } |
return delegate_->CreateRenderViewForRenderManager(render_view_host); |
} |