summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chrome_content_browser_client.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/chrome_content_browser_client.cc')
-rw-r--r--chrome/browser/chrome_content_browser_client.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 0ba282b..4a1264d 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -37,8 +37,10 @@ void ChromeContentBrowserClient::PreCreateRenderView(
render_view_host->set_is_extension_process(is_extension_process);
const Extension* installed_app = service->GetInstalledApp(url);
- static_cast<BrowserRenderProcessHost*>(render_view_host->process())->
- set_installed_app(installed_app);
+ if (installed_app) {
+ service->SetInstalledAppForRenderer(
+ render_view_host->process()->id(), installed_app);
+ }
}
}
@@ -47,8 +49,7 @@ void ChromeContentBrowserClient::BrowserRenderProcessHostCreated(
host->channel()->AddFilter(new ChromeRenderMessageFilter(
host->id(),
host->profile(),
- host->profile()->GetRequestContextForPossibleApp(
- host->installed_app())));
+ host->profile()->GetRequestContextForRenderProcess(host->id())));
host->channel()->AddFilter(new PrintingMessageFilter());
host->channel()->AddFilter(
new SearchProviderInstallStateMessageFilter(host->id(), host->profile()));