Commit 6300266d authored by Lambros Lambrou's avatar Lambros Lambrou Committed by Commit Bot

Remove another DCHECK(UID != 0) from Mac remoting Me2Me host.

A similar DCHECK was removed in
http://crrev.com/0a0c3a85f4eeb668acc87dbc575405c6026971a1

The check is unnecessary, and is a no-op in release builds. The host
is meant to run as root for the login screen when curtain-mode is not
enabled.

Bug: 1020739
Change-Id: I5f764611b745ce58c47353b63678fbbadb3a68f3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2037466
Commit-Queue: Lambros Lambrou <lambroslambrou@chromium.org>
Commit-Queue: Jamie Walch <jamiewalch@chromium.org>
Auto-Submit: Lambros Lambrou <lambroslambrou@chromium.org>
Reviewed-by: default avatarJamie Walch <jamiewalch@chromium.org>
Cr-Commit-Position: refs/heads/master@{#738375}
parent becf010b
......@@ -494,9 +494,6 @@ HostProcess::~HostProcess() {
bool HostProcess::InitWithCommandLine(const base::CommandLine* cmd_line) {
#if defined(OS_MACOSX)
// Ensure we are not running as root (i.e. at the login screen).
DCHECK_NE(getuid(), 0U);
if (cmd_line->HasSwitch(kCheckAccessibilityPermissionSwitchName)) {
checking_permission_state_ = true;
permission_granted_ = mac::CanInjectInput();
......
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