Commit 04a14cb0 authored by Fabrice de Gans-Riberi's avatar Fabrice de Gans-Riberi Committed by Commit Bot

[fuchsia] Remove logic from DCHECK condition.

This was causing the code to not be executed in non-dcheck builds.

Change-Id: Ib1257333ae0683c7b068e9837f7d1a5b36848628
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1861104
Commit-Queue: Fabrice de Gans-Riberi <fdegans@chromium.org>
Commit-Queue: Sergey Ulanov <sergeyu@chromium.org>
Auto-Submit: Fabrice de Gans-Riberi <fdegans@chromium.org>
Reviewed-by: default avatarSergey Ulanov <sergeyu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#705822}
parent dd101fc3
......@@ -282,7 +282,8 @@ WebEngineDevToolsController::CreateFromCommandLine(
// The command-line option can only be provided by the ContextProvider
// process, it should not fail to parse to an int.
DCHECK(base::StringToInt(command_line_port_value, &parsed_port));
bool parsed = base::StringToInt(command_line_port_value, &parsed_port);
DCHECK(parsed);
if (parsed_port != 0 &&
(!net::IsPortValid(parsed_port) || net::IsWellKnownPort(parsed_port))) {
......
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