| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/environment.h" | 5 #include "base/environment.h" |
| 6 | 6 |
| 7 #if defined(OS_POSIX) | 7 #if defined(OS_POSIX) |
| 8 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 #elif defined(OS_WIN) | 9 #elif defined(OS_WIN) |
| 10 #include <windows.h> | 10 #include <windows.h> |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 112 |
| 113 } // namespace env_vars | 113 } // namespace env_vars |
| 114 | 114 |
| 115 Environment::~Environment() {} | 115 Environment::~Environment() {} |
| 116 | 116 |
| 117 // static | 117 // static |
| 118 Environment* Environment::Create() { | 118 Environment* Environment::Create() { |
| 119 return new EnvironmentImpl(); | 119 return new EnvironmentImpl(); |
| 120 } | 120 } |
| 121 | 121 |
| 122 bool Environment::HasEnv(const char* variable_name) { | 122 bool Environment::HasVar(const char* variable_name) { |
| 123 return GetEnv(variable_name, NULL); | 123 return GetEnv(variable_name, NULL); |
| 124 } | 124 } |
| 125 | 125 |
| 126 } // namespace base | 126 } // namespace base |
| OLD | NEW |