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/branding.h"
7 #include "base/base_paths.h"
8 #include "base/path_service.h"
12 // TODO(lambroslambrou): The default locations should depend on whether Chrome
13 // branding is enabled - this means also modifying the Python daemon script.
14 // The actual location of the files is ultimately determined by the service
15 // daemon and native messaging host - these defaults are only used in case the
16 // command-line switches are absent.
19 const base::FilePath::CharType kConfigDir
[] =
20 FILE_PATH_LITERAL("Google\\Chrome Remote Desktop");
22 const base::FilePath::CharType kConfigDir
[] =
23 FILE_PATH_LITERAL("Chromoting");
25 #elif defined(OS_MACOSX)
26 const base::FilePath::CharType kConfigDir
[] =
27 FILE_PATH_LITERAL("Chrome Remote Desktop");
29 const base::FilePath::CharType kConfigDir
[] =
30 FILE_PATH_LITERAL(".config/chrome-remote-desktop");
38 const wchar_t kWindowsServiceName
[] = L
"chromoting";
41 base::FilePath
GetConfigDir() {
42 base::FilePath app_data_dir
;
45 PathService::Get(base::DIR_COMMON_APP_DATA
, &app_data_dir
);
46 #elif defined(OS_MACOSX)
47 PathService::Get(base::DIR_APP_DATA
, &app_data_dir
);
49 PathService::Get(base::DIR_HOME
, &app_data_dir
);
52 return app_data_dir
.Append(kConfigDir
);
55 } // namespace remoting