Index: content/browser/browser_child_process_host_impl.cc |
diff --git a/content/browser/browser_child_process_host_impl.cc b/content/browser/browser_child_process_host_impl.cc |
index b22ee21aae609f6f88923a8728efbe10d379152d..0add19095521f5a90d64c5616b17a094ceb4f563 100644 |
--- a/content/browser/browser_child_process_host_impl.cc |
+++ b/content/browser/browser_child_process_host_impl.cc |
@@ -164,13 +164,13 @@ ChildProcessHost* BrowserChildProcessHostImpl::GetHost() const { |
return child_process_host_.get(); |
} |
-base::ProcessHandle BrowserChildProcessHostImpl::GetHandle() const { |
+const base::Process& BrowserChildProcessHostImpl::GetProcess() const { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
DCHECK(child_process_.get()) |
<< "Requesting a child process handle before launching."; |
DCHECK(child_process_->GetProcess().IsValid()) |
<< "Requesting a child process handle before launch has completed OK."; |
- return child_process_->GetProcess().Handle(); |
+ return child_process_->GetProcess(); |
} |
void BrowserChildProcessHostImpl::SetName(const base::string16& name) { |
@@ -255,7 +255,8 @@ void BrowserChildProcessHostImpl::OnBadMessageReceived( |
switches::kDisableKillAfterBadIPC)) { |
return; |
} |
- base::KillProcess(GetHandle(), RESULT_CODE_KILLED_BAD_MESSAGE, false); |
+ base::KillProcess(child_process_->GetProcess().Handle(), |
+ RESULT_CODE_KILLED_BAD_MESSAGE, false); |
} |
bool BrowserChildProcessHostImpl::CanShutdown() { |