| Index: content/shell/webkit_test_controller.cc
|
| diff --git a/content/shell/webkit_test_controller.cc b/content/shell/webkit_test_controller.cc
|
| index f12c4a42e1959ae4abf3fe6e0bf3a070ddb86b01..af585b6c83ca742ba988f54d3b63e98ac0e6515f 100644
|
| --- a/content/shell/webkit_test_controller.cc
|
| +++ b/content/shell/webkit_test_controller.cc
|
| @@ -273,9 +273,10 @@ void WebKitTestController::PluginCrashed(const FilePath& plugin_path) {
|
|
|
| void WebKitTestController::RenderViewCreated(RenderViewHost* render_view_host) {
|
| DCHECK(CalledOnValidThread());
|
| - // Might be kNullProcessId, in which case we will receive a notification later
|
| - // when the RenderProcessHost was created.
|
| - current_pid_ = base::GetProcId(render_view_host->GetProcess()->GetHandle());
|
| + // Might be kNullProcessHandle, in which case we will receive a notification
|
| + // later when the RenderProcessHost was created.
|
| + if (render_view_host->GetProcess()->GetHandle() != base::kNullProcessHandle)
|
| + current_pid_ = base::GetProcId(render_view_host->GetProcess()->GetHandle());
|
| render_view_host->Send(new ShellViewMsg_SetCurrentWorkingDirectory(
|
| render_view_host->GetRoutingID(), current_working_directory_));
|
| }
|
|
|