mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
GetHandle() -> GetProcess().Handle()
This commit is contained in:
committed by
Aleksei Kuzmin
parent
1c60f9e468
commit
b9cd3493ac
@@ -800,7 +800,8 @@ void App::BrowserChildProcessKilled(
|
||||
}
|
||||
|
||||
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) {
|
||||
|
||||
@@ -1103,7 +1103,7 @@ int WebContents::GetProcessID() const {
|
||||
|
||||
base::ProcessId WebContents::GetOSProcessID() const {
|
||||
base::ProcessHandle process_handle =
|
||||
web_contents()->GetMainFrame()->GetProcess()->GetHandle();
|
||||
web_contents()->GetMainFrame()->GetProcess()->GetProcess().Handle();
|
||||
return base::GetProcId(process_handle);
|
||||
}
|
||||
|
||||
|
||||
@@ -551,7 +551,8 @@ void AtomBrowserClient::RenderProcessHostDestroyed(
|
||||
}
|
||||
|
||||
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_) {
|
||||
static_cast<api::App*>(delegate_)->RenderProcessReady(host);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user