diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-05 23:12:56 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-05 23:12:56 +0000 |
commit | 705800aed2989c63913a76750d28c25932aa6f46 (patch) | |
tree | 346f09cb4f66440cbd94566eff3a5abf708299ca /base/sys_info_posix.cc | |
parent | 0ea87f1ffde023f910d6b64450283aebf312092b (diff) | |
download | chromium_src-705800aed2989c63913a76750d28c25932aa6f46.zip chromium_src-705800aed2989c63913a76750d28c25932aa6f46.tar.gz chromium_src-705800aed2989c63913a76750d28c25932aa6f46.tar.bz2 |
base: Get rid of the deprecated SysInfo::HasEnvVar.
Use the new EnvVarGetter::HasEnv instead.
BUG=None
TEST=trybots
Review URL: http://codereview.chromium.org/2819042
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51648 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/sys_info_posix.cc')
-rw-r--r-- | base/sys_info_posix.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/base/sys_info_posix.cc b/base/sys_info_posix.cc index b2526ba..f2d75d2 100644 --- a/base/sys_info_posix.cc +++ b/base/sys_info_posix.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -47,12 +47,6 @@ int64 SysInfo::AmountOfFreeDiskSpace(const FilePath& path) { } // static -bool SysInfo::HasEnvVar(const wchar_t* var) { - std::string var_utf8 = WideToUTF8(std::wstring(var)); - return getenv(var_utf8.c_str()) != NULL; -} - -// static std::wstring SysInfo::GetEnvVar(const wchar_t* var) { std::string var_utf8 = WideToUTF8(std::wstring(var)); char* value = getenv(var_utf8.c_str()); |