GetRenderProcessHost() has been removed for OOPI support, should use #include GetMainFrame()->GetProcess()

This commit is contained in:
Samuel Attard 2017-12-18 13:46:23 +11:00 committed by Aleksei Kuzmin
parent c3dec709ab
commit a8e013dcb6
4 changed files with 17 additions and 10 deletions

View file

@ -97,7 +97,7 @@ content::WebContents* WebContentsPreferences::GetWebContentsFromProcessID(
int process_id) {
for (WebContentsPreferences* preferences : instances_) {
content::WebContents* web_contents = preferences->web_contents_;
if (web_contents->GetRenderProcessHost()->GetID() == process_id)
if (web_contents->GetMainFrame()->GetProcess()->GetID() == process_id)
return web_contents;
}
return nullptr;