// this WebContentsImpl instance. If any other process sends the request,
// it is invalid and the process must be terminated.
if (GetRenderProcessHost()->GetID() != render_process_id) {
- base::ProcessHandle process_handle =
- RenderProcessHost::FromID(render_process_id)->GetHandle();
+ RenderProcessHost* rph = RenderProcessHost::FromID(render_process_id);
+ base::ProcessHandle process_handle = rph->GetHandle();
if (process_handle != base::kNullProcessHandle) {
RecordAction(
base::UserMetricsAction("Terminate_ProcessMismatch_CreateNewWindow"));
-#if !defined(EWK_BRINGUP)
-// [M44_2403] Temporary disabling the codes for switching to new chromium
-// FIXME: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=14039
- base::KillProcess(process_handle, RESULT_CODE_KILLED, false);
-#endif
+ rph->Shutdown(RESULT_CODE_KILLED, false);
}
return;
}