Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Unified Diff: content/public/test/mock_render_process_host.cc

Issue 10854245: In-te-grate hy-phen-ator to con-tent. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {

Powered by Google App Engine
This is Rietveld 408576698