Commit 5868b6d9 authored by Sergey Ulanov's avatar Sergey Ulanov Committed by Commit Bot

[Fuchsia] Fix crash in ~SandboxPolicyFuchsia()

The function as crashing browser process after GPU process is crashed.

Bug: 874533
Change-Id: I2c506b6f90642a0881aa510807cb407e1b655050
Reviewed-on: https://chromium-review.googlesource.com/1178753Reviewed-by: default avatarKevin Marshall <kmarshall@chromium.org>
Commit-Queue: Kevin Marshall <kmarshall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#583829}
parent c466fd23
...@@ -28,8 +28,10 @@ constexpr const char* const kRendererServices[] = { ...@@ -28,8 +28,10 @@ constexpr const char* const kRendererServices[] = {
SandboxPolicyFuchsia::SandboxPolicyFuchsia() = default; SandboxPolicyFuchsia::SandboxPolicyFuchsia() = default;
SandboxPolicyFuchsia::~SandboxPolicyFuchsia() { SandboxPolicyFuchsia::~SandboxPolicyFuchsia() {
service_directory_task_runner_->DeleteSoon(FROM_HERE, if (service_directory_) {
std::move(service_directory_)); service_directory_task_runner_->DeleteSoon(FROM_HERE,
std::move(service_directory_));
}
} }
void SandboxPolicyFuchsia::Initialize(service_manager::SandboxType type) { void SandboxPolicyFuchsia::Initialize(service_manager::SandboxType type) {
......
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