diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-21 02:59:28 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-21 02:59:28 +0000 |
commit | 574f6f0cd6e95eee50ba55b27029e51d79dd95e3 (patch) | |
tree | 4188477e3ad98cf127a940b91ead353156b990dd /remoting | |
parent | 275ccdb4f1ce1e76aad77ba1c2b22109291b577b (diff) | |
download | chromium_src-574f6f0cd6e95eee50ba55b27029e51d79dd95e3.zip chromium_src-574f6f0cd6e95eee50ba55b27029e51d79dd95e3.tar.gz chromium_src-574f6f0cd6e95eee50ba55b27029e51d79dd95e3.tar.bz2 |
base: add home environment variable to env_var.h
BUG=None
TEST=trybots
Signed-off-by: Thiago Farina <tfarina@chromium.org>
Review URL: http://codereview.chromium.org/2847058
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53143 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r-- | remoting/host/simple_host_process.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/remoting/host/simple_host_process.cc b/remoting/host/simple_host_process.cc index 035fa32..a83dfc8 100644 --- a/remoting/host/simple_host_process.cc +++ b/remoting/host/simple_host_process.cc @@ -20,6 +20,7 @@ #include "base/at_exit.h" #include "base/command_line.h" +#include "base/env_var.h" #include "base/file_path.h" #include "base/logging.h" #include "base/nss_util.h" @@ -49,7 +50,6 @@ const wchar_t kHomePath[] = L"HOMEPATH"; const wchar_t* GetEnvironmentVar(const wchar_t* x) { return _wgetenv(x); } #else const std::string kDefaultConfigPath = ".ChromotingConfig.json"; -const char kHomePath[] = "HOME"; static char* GetEnvironmentVar(const char* x) { return getenv(x); } #endif @@ -93,7 +93,7 @@ int main(int argc, char** argv) { std::wstring path = GetEnvironmentVar(kHomeDrive); path += GetEnvironmentVar(kHomePath); #else - std::string path = GetEnvironmentVar(kHomePath); + std::string path = GetEnvironmentVar(base::env_vars::kHome); #endif FilePath config_path(path); config_path = config_path.Append(kDefaultConfigPath); |