From 350528707bb4ca11e9c008a3e6fab829a4b74d3e Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 15 May 2017 13:29:34 -0700 Subject: [PATCH] Return base::ProcessId --- atom/browser/api/atom_api_web_contents.cc | 2 +- atom/browser/api/atom_api_web_contents.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index 5afecfedd2de..84773aff1cb4 100644 --- a/atom/browser/api/atom_api_web_contents.cc +++ b/atom/browser/api/atom_api_web_contents.cc @@ -1008,7 +1008,7 @@ int WebContents::GetProcessID() const { return web_contents()->GetRenderProcessHost()->GetID(); } -int WebContents::GetOSProcessID() const { +base::ProcessId WebContents::GetOSProcessID() const { auto process_handle = web_contents()->GetRenderProcessHost()->GetHandle(); return base::GetProcId(process_handle); } diff --git a/atom/browser/api/atom_api_web_contents.h b/atom/browser/api/atom_api_web_contents.h index 9549950dd428..9c6ffa4f8fd1 100644 --- a/atom/browser/api/atom_api_web_contents.h +++ b/atom/browser/api/atom_api_web_contents.h @@ -83,7 +83,7 @@ class WebContents : public mate::TrackableObject, int64_t GetID() const; int GetProcessID() const; - int GetOSProcessID() const; + base::ProcessId GetOSProcessID() const; Type GetType() const; bool Equal(const WebContents* web_contents) const; void LoadURL(const GURL& url, const mate::Dictionary& options);