1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "remoting/host/ipc_constants.h"
7 #include "base/compiler_specific.h"
8 #include "base/logging.h"
9 #include "base/path_service.h"
13 const char kDaemonPipeSwitchName[] = "daemon-pipe";
15 const base::FilePath::CharType kHostBinaryName[] =
16 FILE_PATH_LITERAL("remoting_host");
18 const base::FilePath::CharType kDesktopBinaryName[] =
19 FILE_PATH_LITERAL("remoting_desktop");
21 bool GetInstalledBinaryPath(const base::FilePath::StringType& binary,
22 base::FilePath* full_path) {
23 base::FilePath dir_path;
24 if (!PathService::Get(base::DIR_EXE, &dir_path)) {
25 LOG(ERROR) << "Failed to get the executable file name.";
29 base::FilePath path = dir_path.Append(binary);
32 path = path.ReplaceExtension(FILE_PATH_LITERAL("exe"));
33 #endif // defined(OS_WIN)
39 } // namespace remoting