This source file includes following definitions.
- GetConfigDir
#include "remoting/host/branding.h"
#include "base/file_util.h"
#include "base/path_service.h"
namespace {
#if defined(OS_WIN)
#ifdef OFFICIAL_BUILD
const base::FilePath::CharType kConfigDir[] =
FILE_PATH_LITERAL("Google\\Chrome Remote Desktop");
#else
const base::FilePath::CharType kConfigDir[] =
FILE_PATH_LITERAL("Chromoting");
#endif
#elif defined(OS_MACOSX)
const base::FilePath::CharType kConfigDir[] =
FILE_PATH_LITERAL("Chrome Remote Desktop");
#else
const base::FilePath::CharType kConfigDir[] =
FILE_PATH_LITERAL(".config/chrome-remote-desktop");
#endif
}
namespace remoting {
#if defined(OS_WIN)
const wchar_t kWindowsServiceName[] = L"chromoting";
#endif
base::FilePath GetConfigDir() {
base::FilePath app_data_dir;
#if defined(OS_WIN)
PathService::Get(base::DIR_COMMON_APP_DATA, &app_data_dir);
#elif defined(OS_MACOSX)
PathService::Get(base::DIR_APP_DATA, &app_data_dir);
#else
app_data_dir = base::GetHomeDir();
#endif
return app_data_dir.Append(kConfigDir);
}
}