diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-08 03:56:17 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-08 03:56:17 +0000 |
commit | 6c817557ed5fa92658cfc0616fe72a71643491f9 (patch) | |
tree | beb3ef6cdc6aaa5e5737b64d23bd62cca0787a1c /base/sys_info_posix.cc | |
parent | 33d396b083d7096f7c44ea76fd4a6765dec75d87 (diff) | |
download | chromium_src-6c817557ed5fa92658cfc0616fe72a71643491f9.zip chromium_src-6c817557ed5fa92658cfc0616fe72a71643491f9.tar.gz chromium_src-6c817557ed5fa92658cfc0616fe72a71643491f9.tar.bz2 |
base: Get rid of the deprecated SysInfo::GetEnvVar.
Use the new EnvVarGetter::GetEnv instead.
BUG=None
TEST=trybots
Review URL: http://codereview.chromium.org/2876045
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51829 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/sys_info_posix.cc')
-rw-r--r-- | base/sys_info_posix.cc | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/base/sys_info_posix.cc b/base/sys_info_posix.cc index f2d75d2..3f487e5 100644 --- a/base/sys_info_posix.cc +++ b/base/sys_info_posix.cc @@ -47,17 +47,6 @@ int64 SysInfo::AmountOfFreeDiskSpace(const FilePath& path) { } // static -std::wstring SysInfo::GetEnvVar(const wchar_t* var) { - std::string var_utf8 = WideToUTF8(std::wstring(var)); - char* value = getenv(var_utf8.c_str()); - if (!value) { - return std::wstring(); - } else { - return UTF8ToWide(value); - } -} - -// static std::string SysInfo::OperatingSystemName() { utsname info; if (uname(&info) < 0) { |