Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Unified Diff: base/sys_info_win.cc

Issue 2876045: base: Get rid of the deprecated SysInfo::GetEnvVar. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: " Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/sys_info_unittest.cc ('k') | chrome/browser/browser_init.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/sys_info_win.cc
diff --git a/base/sys_info_win.cc b/base/sys_info_win.cc
index 35a7878b3fd7e3e84b031208563c1f634bf9216a..ed4d2fb254576cc34542e1796e4c1306522d1216 100644
--- a/base/sys_info_win.cc
+++ b/base/sys_info_win.cc
@@ -48,17 +48,6 @@ int64 SysInfo::AmountOfFreeDiskSpace(const FilePath& path) {
}
// static
-std::wstring SysInfo::GetEnvVar(const wchar_t* var) {
- DWORD value_length = GetEnvironmentVariable(var, NULL, 0);
- if (value_length == 0) {
- return L"";
- }
- scoped_array<wchar_t> value(new wchar_t[value_length]);
- GetEnvironmentVariable(var, value.get(), value_length);
- return std::wstring(value.get());
-}
-
-// static
std::string SysInfo::OperatingSystemName() {
return "Windows NT";
}
« no previous file with comments | « base/sys_info_unittest.cc ('k') | chrome/browser/browser_init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698