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

Side by Side Diff: base/environment.cc

Issue 6714032: Move some files in base to base/memory. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: only base Created 9 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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>
11 #endif 11 #endif
12 12
13 #include "base/string_util.h" 13 #include "base/string_util.h"
14 14
15 #if defined(OS_WIN) 15 #if defined(OS_WIN)
16 #include "base/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "base/utf_string_conversions.h" 17 #include "base/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:
24 virtual bool GetVar(const char* variable_name, std::string* result) { 24 virtual bool GetVar(const char* variable_name, std::string* result) {
25 if (GetVarImpl(variable_name, result)) 25 if (GetVarImpl(variable_name, result))
26 return true; 26 return true;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // static 116 // static
117 Environment* Environment::Create() { 117 Environment* Environment::Create() {
118 return new EnvironmentImpl(); 118 return new EnvironmentImpl();
119 } 119 }
120 120
121 bool Environment::HasVar(const char* variable_name) { 121 bool Environment::HasVar(const char* variable_name) {
122 return GetVar(variable_name, NULL); 122 return GetVar(variable_name, NULL);
123 } 123 }
124 124
125 } // namespace base 125 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698