Chromium Code Reviews| Index: content/public/test/mock_render_process_host.cc |
| =================================================================== |
| --- content/public/test/mock_render_process_host.cc (revision 152650) |
| +++ content/public/test/mock_render_process_host.cc (working copy) |
| @@ -101,7 +101,13 @@ |
| } |
| base::ProcessHandle MockRenderProcessHost::GetHandle() { |
| +#if defined(OS_WIN) |
| + // Return the current process handle for the IPC::GetFileHandleForProcess |
| + // function. |
| + return GetCurrentProcess(); |
|
tony
2012/08/22 19:05:50
Why only on Windows?
Hironori Bono
2012/08/27 06:57:28
Thanks for noticing it. This is just because I hav
|
| +#else |
| return base::kNullProcessHandle; |
| +#endif |
| } |
| bool MockRenderProcessHost::Send(IPC::Message* msg) { |