diff options
author | Adam Kallai <kadam@inf.u-szeged.hu> | 2015-04-20 01:50:45 -0700 |
---|---|---|
committer | Andras Becsi <andras.becsi@theqtcompany.com> | 2015-04-21 12:26:07 +0000 |
commit | 5bdd41388fab6486061d1bd25be132533d05d711 (patch) | |
tree | 8b59bee5e8f277e0d3fec5026484e5bd267d5cfd /src/core/content_browser_client_qt.cpp | |
parent | 7ff8dc3dbfe4effce66bee8b7b59284f4b2f95be (diff) |
Fix assignment of observer to RenderProcessHost.
By default Chromium uses the process-per-site-instance process model.
Therefore if there is a renderProcessHost which is already observed
we do not need to add another observer for user scripts.
Change-Id: Ic0c2104ebbefb2b8427c43c4c665d96b5a991ba1
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
Diffstat (limited to 'src/core/content_browser_client_qt.cpp')
-rw-r--r-- | src/core/content_browser_client_qt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/content_browser_client_qt.cpp b/src/core/content_browser_client_qt.cpp index a6a133271..60ca493ca 100644 --- a/src/core/content_browser_client_qt.cpp +++ b/src/core/content_browser_client_qt.cpp @@ -332,7 +332,7 @@ void ContentBrowserClientQt::RenderProcessWillLaunch(content::RenderProcessHost* { // FIXME: Add a settings variable to enable/disable the file scheme. content::ChildProcessSecurityPolicy::GetInstance()->GrantScheme(host->GetID(), url::kFileScheme); - static_cast<BrowserContextQt*>(host->GetBrowserContext())->m_adapter->userScriptController()->renderProcessHostCreated(host); + static_cast<BrowserContextQt*>(host->GetBrowserContext())->m_adapter->userScriptController()->renderProcessStartedWithHost(host); } void ContentBrowserClientQt::ResourceDispatcherHostCreated() |