summaryrefslogtreecommitdiffstats
path: root/base/sys_info_win.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-05 23:12:56 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-05 23:12:56 +0000
commit705800aed2989c63913a76750d28c25932aa6f46 (patch)
tree346f09cb4f66440cbd94566eff3a5abf708299ca /base/sys_info_win.cc
parent0ea87f1ffde023f910d6b64450283aebf312092b (diff)
downloadchromium_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_win.cc')
-rw-r--r--base/sys_info_win.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/base/sys_info_win.cc b/base/sys_info_win.cc
index ebb95c7ba..35a7878 100644
--- a/base/sys_info_win.cc
+++ b/base/sys_info_win.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.
@@ -48,11 +48,6 @@ int64 SysInfo::AmountOfFreeDiskSpace(const FilePath& path) {
}
// static
-bool SysInfo::HasEnvVar(const wchar_t* var) {
- return GetEnvironmentVariable(var, NULL, 0) != 0;
-}
-
-// static
std::wstring SysInfo::GetEnvVar(const wchar_t* var) {
DWORD value_length = GetEnvironmentVariable(var, NULL, 0);
if (value_length == 0) {