| Index: remoting/host/safe_mode.cc
|
| diff --git a/remoting/host/safe_mode.cc b/remoting/host/safe_mode.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4804fbdc4ddbae78ae0e666c7b37b30bb6291d88
|
| --- /dev/null
|
| +++ b/remoting/host/safe_mode.cc
|
| @@ -0,0 +1,17 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "remoting/host/safe_mode.h"
|
| +
|
| +#include "base/command_line.h"
|
| +#include "remoting/host/switches.h"
|
| +
|
| +namespace remoting {
|
| +
|
| +bool ExecuteHostInSafeMode() {
|
| + const auto* command_line = base::CommandLine::ForCurrentProcess();
|
| + return command_line->HasSwitch(kSafeMode);
|
| +}
|
| +
|
| +} // namespace remoting
|
|
|