Commit 00b94a47 authored by Brett Wilson's avatar Brett Wilson Committed by Commit Bot

Fix Windows build of OOP heap profiling

The handle conversion requires an extra cast on Windows.

TBR=ajwong@chromium.org

Change-Id: If7da57e0314496e3922cd0634b4ec8ab4e063f48
Reviewed-on: https://chromium-review.googlesource.com/580668Reviewed-by: default avatarBrett Wilson <brettw@chromium.org>
Commit-Queue: Brett Wilson <brettw@chromium.org>
Cr-Commit-Position: refs/heads/master@{#488511}
parent 3ee9d815
......@@ -159,8 +159,12 @@ void ProfilingProcessHost::Launch() {
base::LaunchOptions options;
#if defined(OS_WIN)
options.handles_to_inherit = &handle_passing_info;
std::string local_pipe_string = base::IntToString(
reinterpret_cast<int>(data_channel.PassServerHandle().release().handle));
#elif defined(OS_POSIX)
options.fds_to_remap = &handle_passing_info;
std::string local_pipe_string =
base::IntToString(data_channel.PassServerHandle().release().handle);
#if defined(OS_LINUX)
options.kill_on_parent_death = true;
#endif
......@@ -169,8 +173,7 @@ void ProfilingProcessHost::Launch() {
#endif
process_ = base::LaunchProcess(profiling_cmd, options);
StartMemlogSender(
base::IntToString(data_channel.PassServerHandle().release().handle));
StartMemlogSender(local_pipe_string);
}
void ProfilingProcessHost::EnsureControlChannelExists() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment