| 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 <string> |
| 6 |
| 5 #include "base/environment.h" | 7 #include "base/environment.h" |
| 8 #include "build/build_config.h" |
| 6 | 9 |
| 7 #if defined(OS_POSIX) | 10 #if defined(OS_POSIX) |
| 8 #include <stdlib.h> | 11 #include <stdlib.h> |
| 9 #elif defined(OS_WIN) | 12 #elif defined(OS_WIN) |
| 10 #include <windows.h> | 13 #include <windows.h> |
| 11 #endif | 14 #endif |
| 12 | 15 |
| 13 #include "base/string_util.h" | 16 #include "base/string_util.h" |
| 14 | 17 |
| 15 #if defined(OS_WIN) | 18 #if defined(OS_WIN) |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 // static | 119 // static |
| 117 Environment* Environment::Create() { | 120 Environment* Environment::Create() { |
| 118 return new EnvironmentImpl(); | 121 return new EnvironmentImpl(); |
| 119 } | 122 } |
| 120 | 123 |
| 121 bool Environment::HasVar(const char* variable_name) { | 124 bool Environment::HasVar(const char* variable_name) { |
| 122 return GetVar(variable_name, NULL); | 125 return GetVar(variable_name, NULL); |
| 123 } | 126 } |
| 124 | 127 |
| 125 } // namespace base | 128 } // namespace base |
| OLD | NEW |