GetRenderProcessHost() has been removed for OOPI support, should use #include GetMainFrame()->GetProcess()
This commit is contained in:
parent
c3dec709ab
commit
a8e013dcb6
4 changed files with 17 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue