GetHandle() -> GetProcess().Handle()

This commit is contained in:
Jeremy Apthorp 2018-09-14 17:13:02 -07:00 committed by Aleksei Kuzmin
parent 1c60f9e468
commit b9cd3493ac
3 changed files with 5 additions and 3 deletions

View file

@ -800,7 +800,8 @@ void App::BrowserChildProcessKilled(
} }
void App::RenderProcessReady(content::RenderProcessHost* host) { void App::RenderProcessReady(content::RenderProcessHost* host) {
ChildProcessLaunched(content::PROCESS_TYPE_RENDERER, host->GetHandle()); ChildProcessLaunched(content::PROCESS_TYPE_RENDERER,
host->GetProcess().Handle());
} }
void App::RenderProcessDisconnected(base::ProcessId host_pid) { void App::RenderProcessDisconnected(base::ProcessId host_pid) {

View file

@ -1103,7 +1103,7 @@ int WebContents::GetProcessID() const {
base::ProcessId WebContents::GetOSProcessID() const { base::ProcessId WebContents::GetOSProcessID() const {
base::ProcessHandle process_handle = base::ProcessHandle process_handle =
web_contents()->GetMainFrame()->GetProcess()->GetHandle(); web_contents()->GetMainFrame()->GetProcess()->GetProcess().Handle();
return base::GetProcId(process_handle); return base::GetProcId(process_handle);
} }

View file

@ -551,7 +551,8 @@ void AtomBrowserClient::RenderProcessHostDestroyed(
} }
void AtomBrowserClient::RenderProcessReady(content::RenderProcessHost* host) { void AtomBrowserClient::RenderProcessReady(content::RenderProcessHost* host) {
render_process_host_pids_[host->GetID()] = base::GetProcId(host->GetHandle()); render_process_host_pids_[host->GetID()] =
base::GetProcId(host->GetProcess().Handle());
if (delegate_) { if (delegate_) {
static_cast<api::App*>(delegate_)->RenderProcessReady(host); static_cast<api::App*>(delegate_)->RenderProcessReady(host);
} }