Return base::ProcessId

This commit is contained in:
Kevin Sawicki 2017-05-15 13:29:34 -07:00
parent d79ac8d9c1
commit 350528707b
2 changed files with 2 additions and 2 deletions

View file

@ -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);
}

View file

@ -83,7 +83,7 @@ class WebContents : public mate::TrackableObject<WebContents>,
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);