remoting: Implement host migration tool for Linux [chromium/src : main]

0 views
Skip to first unread message

Yuwei Huang (Gerrit)

unread,
Apr 23, 2026, 2:01:39 AM (yesterday) Apr 23
to chromium...@chromium.org, chromotin...@chromium.org

Yuwei Huang added 1 comment

File remoting/host/linux/migrate_host_main.cc
Line 303, Patchset 1 (Latest): if (int exit_code = DisableService("chrome-remote-desktop@" + user_name +
Yuwei Huang . unresolved

Please fix this WARNING reported by autoreview issue finding: Because `!=` has higher precedence than `=`, this parses as `int exit_code = (DisableService(...) != 0)`. `exit_code` will be assigned a boolean `0` or `1` instead of the actual error code returned by `DisableService`, and this will always return `1` on failure instead of the true exit code.\n\nIt should be separated:\n```cpp\nint exit_code = DisableService(\n \"chrome-remote-desktop@\" + user_name + \".service\");\nif (exit_code != 0) {\n return exit_code;\n}\n```

Because `!=` has higher precedence than `=`, this parses as `int exit_code = (DisableService(...) != 0)`. `exit_code` will be assigned a boolean `0` or `1` instead of the actual error code returned by `DisableService`, and this will always return `1` on failure instead of the true exit code.\n\nIt should be separated:\n```cpp\nint exit_code = DisableService(\n \"chrome-remote-desktop@\" + user_name + \".service\");\nif (exit_code != 0) {\n return exit_code;\n}\n```

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I913325ab6206620b2b6b32ff530a4131cdadd55a
Gerrit-Change-Number: 7788433
Gerrit-PatchSet: 1
Gerrit-Owner: Yuwei Huang <yuw...@chromium.org>
Gerrit-Comment-Date: Thu, 23 Apr 2026 06:01:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Yuwei Huang (Gerrit)

unread,
Apr 23, 2026, 2:42:58 AM (yesterday) Apr 23
to chromium...@chromium.org, chromotin...@chromium.org

Yuwei Huang abandoned this change.

View Change

Abandoned

Yuwei Huang abandoned this change

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: abandon
satisfied_requirement
unsatisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages