Commit 033428c9 authored by Sergey Ulanov's avatar Sergey Ulanov Committed by Commit Bot

[Fuchsia] Don't pass --disable-gpu to webrunner context process

Previously --disable-gpu process was passed to context process
to prevent it from starting GPU process. It no longer disables
GPU process, but GPU process should not crash once
https://crrev.com/r/1178754 lands.

Bug: 867052, 874533
Change-Id: If2baf7aa50dd9ccb6ee5442d079f50c1908ed72c
Reviewed-on: https://chromium-review.googlesource.com/1178881
Commit-Queue: Sergey Ulanov <sergeyu@chromium.org>
Reviewed-by: default avatarKevin Marshall <kmarshall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#584794}
parent 6d38c1ba
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include "base/fuchsia/fuchsia_logging.h" #include "base/fuchsia/fuchsia_logging.h"
#include "base/logging.h" #include "base/logging.h"
#include "base/process/launch.h" #include "base/process/launch.h"
#include "content/public/common/content_switches.h"
#include "webrunner/service/common.h" #include "webrunner/service/common.h"
namespace webrunner { namespace webrunner {
...@@ -29,11 +28,7 @@ namespace { ...@@ -29,11 +28,7 @@ namespace {
// Relaunches the current executable as a Context process. // Relaunches the current executable as a Context process.
base::Process LaunchContextProcess(const base::CommandLine& launch_command, base::Process LaunchContextProcess(const base::CommandLine& launch_command,
const base::LaunchOptions& launch_options) { const base::LaunchOptions& launch_options) {
base::CommandLine launch_command_modified = launch_command; return base::LaunchProcess(launch_command, launch_options);
// TODO(crbug.com/867052): Remove this flag when GPU process works on Fuchsia.
launch_command_modified.AppendSwitch(switches::kDisableGpu);
return base::LaunchProcess(launch_command_modified, launch_options);
} }
} // namespace } // namespace
......
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