Commit 9e0b9dc2 authored by ben's avatar ben Committed by Commit bot

Fix crash with --mojo-local-storage

null process id was being sent for threads created in the shell process. Use shell process id instead.

R=jam@chromium.org
BUG=

Review URL: https://codereview.chromium.org/1922043003

Cr-Commit-Position: refs/heads/master@{#389841}
parent 4368f22e
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include "base/callback_helpers.h" #include "base/callback_helpers.h"
#include "base/location.h" #include "base/location.h"
#include "base/memory/ptr_util.h" #include "base/memory/ptr_util.h"
#include "base/process/process.h"
#include "base/strings/utf_string_conversions.h" #include "base/strings/utf_string_conversions.h"
#include "base/task_runner.h" #include "base/task_runner.h"
#include "base/thread_task_runner_handle.h" #include "base/thread_task_runner_handle.h"
...@@ -58,7 +59,7 @@ mojom::ShellClientPtr InProcessNativeRunner::Start( ...@@ -58,7 +59,7 @@ mojom::ShellClientPtr InProcessNativeRunner::Start(
#endif #endif
thread_.reset(new base::DelegateSimpleThread(this, thread_name)); thread_.reset(new base::DelegateSimpleThread(this, thread_name));
thread_->Start(); thread_->Start();
pid_available_callback.Run(base::kNullProcessId); pid_available_callback.Run(base::Process::Current().Pid());
return client; return client;
} }
......
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