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 base::FilePath::CharType kHostBinaryName
[] =
14 FILE_PATH_LITERAL("remoting_host");
16 const base::FilePath::CharType kDesktopBinaryName
[] =
17 FILE_PATH_LITERAL("remoting_desktop");
19 bool GetInstalledBinaryPath(const base::FilePath::StringType
& binary
,
20 base::FilePath
* full_path
) {
21 base::FilePath dir_path
;
22 if (!PathService::Get(base::DIR_EXE
, &dir_path
)) {
23 LOG(ERROR
) << "Failed to get the executable file name.";
27 base::FilePath path
= dir_path
.Append(binary
);
30 path
= path
.ReplaceExtension(FILE_PATH_LITERAL("exe"));
31 #endif // defined(OS_WIN)
37 } // namespace remoting