| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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> |
| 11 #endif | 11 #endif |
| 12 | 12 |
| 13 #include "base/string_util.h" | 13 #include "base/strings/string_util.h" |
| 14 | 14 |
| 15 #if defined(OS_WIN) | 15 #if defined(OS_WIN) |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
| 18 #endif | 18 #endif |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 class EnvironmentImpl : public base::Environment { | 22 class EnvironmentImpl : public base::Environment { |
| 23 public: | 23 public: |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 // static | 118 // static |
| 119 Environment* Environment::Create() { | 119 Environment* Environment::Create() { |
| 120 return new EnvironmentImpl(); | 120 return new EnvironmentImpl(); |
| 121 } | 121 } |
| 122 | 122 |
| 123 bool Environment::HasVar(const char* variable_name) { | 123 bool Environment::HasVar(const char* variable_name) { |
| 124 return GetVar(variable_name, NULL); | 124 return GetVar(variable_name, NULL); |
| 125 } | 125 } |
| 126 | 126 |
| 127 } // namespace base | 127 } // namespace base |
| OLD | NEW |