diff --git a/atom/browser/api/atom_api_app.cc b/atom/browser/api/atom_api_app.cc index 82c9ed269dfe..2b7cfbffb81d 100644 --- a/atom/browser/api/atom_api_app.cc +++ b/atom/browser/api/atom_api_app.cc @@ -787,13 +787,15 @@ void App::BrowserChildProcessHostDisconnected( ChildProcessDisconnected(base::GetProcId(data.handle)); } -void App::BrowserChildProcessCrashed(const content::ChildProcessData& data, - int exit_code) { +void App::BrowserChildProcessCrashed( + const content::ChildProcessData& data, + const content::ChildProcessTerminationInfo& info) { ChildProcessDisconnected(base::GetProcId(data.handle)); } -void App::BrowserChildProcessKilled(const content::ChildProcessData& data, - int exit_code) { +void App::BrowserChildProcessKilled( + const content::ChildProcessData& data, + const content::ChildProcessTerminationInfo& info) { ChildProcessDisconnected(base::GetProcId(data.handle)); } diff --git a/atom/browser/api/atom_api_app.h b/atom/browser/api/atom_api_app.h index 770eab1a971b..2e775a6c0044 100644 --- a/atom/browser/api/atom_api_app.h +++ b/atom/browser/api/atom_api_app.h @@ -162,10 +162,12 @@ class App : public AtomBrowserClient::Delegate, const content::ChildProcessData& data) override; void BrowserChildProcessHostDisconnected( const content::ChildProcessData& data) override; - void BrowserChildProcessCrashed(const content::ChildProcessData& data, - int exit_code) override; - void BrowserChildProcessKilled(const content::ChildProcessData& data, - int exit_code) override; + void BrowserChildProcessCrashed( + const content::ChildProcessData& data, + const content::ChildProcessTerminationInfo& info) override; + void BrowserChildProcessKilled( + const content::ChildProcessData& data, + const content::ChildProcessTerminationInfo& info) override; private: void SetAppPath(const base::FilePath& app_path); diff --git a/atom/browser/atom_browser_client.cc b/atom/browser/atom_browser_client.cc index ed0724449a4d..777262a678c4 100644 --- a/atom/browser/atom_browser_client.cc +++ b/atom/browser/atom_browser_client.cc @@ -557,9 +557,9 @@ void AtomBrowserClient::RenderProcessReady(content::RenderProcessHost* host) { } } -void AtomBrowserClient::RenderProcessExited(content::RenderProcessHost* host, - base::TerminationStatus status, - int exit_code) { +void AtomBrowserClient::RenderProcessExited( + content::RenderProcessHost* host, + const content::ChildProcessTerminationInfo& info) { auto host_pid = render_process_host_pids_.find(host->GetID()); if (host_pid != render_process_host_pids_.end()) { if (delegate_) { diff --git a/atom/browser/atom_browser_client.h b/atom/browser/atom_browser_client.h index 4f28bddb89fa..a41a6885b900 100644 --- a/atom/browser/atom_browser_client.h +++ b/atom/browser/atom_browser_client.h @@ -123,9 +123,9 @@ class AtomBrowserClient : public brightray::BrowserClient, // content::RenderProcessHostObserver: void RenderProcessHostDestroyed(content::RenderProcessHost* host) override; void RenderProcessReady(content::RenderProcessHost* host) override; - void RenderProcessExited(content::RenderProcessHost* host, - base::TerminationStatus status, - int exit_code) override; + void RenderProcessExited( + content::RenderProcessHost* host, + const content::ChildProcessTerminationInfo& info) override; bool HandleExternalProtocol( const GURL& url, content::ResourceRequestInfo::WebContentsGetter web_contents_getter,