summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/site_instance.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/tab_contents/site_instance.cc')
-rw-r--r--chrome/browser/tab_contents/site_instance.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/chrome/browser/tab_contents/site_instance.cc b/chrome/browser/tab_contents/site_instance.cc
index 71a171e..832d8db 100644
--- a/chrome/browser/tab_contents/site_instance.cc
+++ b/chrome/browser/tab_contents/site_instance.cc
@@ -28,8 +28,14 @@ RenderProcessHost* SiteInstance::GetProcess() {
browsing_instance_->profile());
// Otherwise (or if that fails), create a new one.
- if (!process)
- process = new BrowserRenderProcessHost(browsing_instance_->profile());
+ if (!process) {
+ if (render_process_host_factory_) {
+ process = render_process_host_factory_->CreateRenderProcessHost(
+ browsing_instance_->profile());
+ } else {
+ process = new BrowserRenderProcessHost(browsing_instance_->profile());
+ }
+ }
// Update our host ID, so all pages in this SiteInstance will use
// the correct process.