Index: content/public/test/mock_render_process_host.cc |
diff --git a/content/public/test/mock_render_process_host.cc b/content/public/test/mock_render_process_host.cc |
index 1f5de5f22faadcfe9467e5f2366cbe667662a694..baf646e1cb4b24d0ef34a446db65d30eb6d70dff 100644 |
--- a/content/public/test/mock_render_process_host.cc |
+++ b/content/public/test/mock_render_process_host.cc |
@@ -122,6 +122,8 @@ void MockRenderProcessHost::DumpHandles() { |
base::ProcessHandle MockRenderProcessHost::GetHandle() const { |
// Return the current-process handle for the IPC::GetFileHandleForProcess |
// function. |
+ if (process_handle) |
+ return base::ProcessHandle(*process_handle); |
return base::Process::Current().handle(); |
} |