#include "remoting/host/branding.h"
#include "base/base_paths.h"
#include "base/path_service.h"
#include "build/build_config.h"
namespace {
#if BUILDFLAG(IS_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 BUILDFLAG(IS_APPLE)
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 BUILDFLAG(IS_WIN)
const wchar_t kWindowsServiceName[] = L"chromoting";
#endif
base::FilePath GetConfigDir() {
base::FilePath app_data_dir;
#if BUILDFLAG(IS_WIN)
base::PathService::Get(base::DIR_COMMON_APP_DATA, &app_data_dir);
#elif BUILDFLAG(IS_APPLE)
base::PathService::Get(base::DIR_APP_DATA, &app_data_dir);
#else
base::PathService::Get(base::DIR_HOME, &app_data_dir);
#endif
return app_data_dir.Append(kConfigDir);
}
}