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

Side by Side Diff: base/environment.h

Issue 2836088: base: rename Environment::SetEnv to Environment::SetVar. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: Created 10 years, 4 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
« no previous file with comments | « app/l10n_util_unittest.cc ('k') | base/environment.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef BASE_ENVIRONMENT_H_ 5 #ifndef BASE_ENVIRONMENT_H_
6 #define BASE_ENVIRONMENT_H_ 6 #define BASE_ENVIRONMENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 18 matching lines...) Expand all
29 static Environment* Create(); 29 static Environment* Create();
30 30
31 // Gets an environment variable's value and stores it in |result|. 31 // Gets an environment variable's value and stores it in |result|.
32 // Returns false if the key is unset. 32 // Returns false if the key is unset.
33 virtual bool GetEnv(const char* variable_name, std::string* result) = 0; 33 virtual bool GetEnv(const char* variable_name, std::string* result) = 0;
34 34
35 // Syntactic sugar for GetEnv(variable_name, NULL); 35 // Syntactic sugar for GetEnv(variable_name, NULL);
36 virtual bool HasVar(const char* variable_name); 36 virtual bool HasVar(const char* variable_name);
37 37
38 // Returns true on success, otherwise returns false. 38 // Returns true on success, otherwise returns false.
39 virtual bool SetEnv(const char* variable_name, 39 virtual bool SetVar(const char* variable_name,
40 const std::string& new_value) = 0; 40 const std::string& new_value) = 0;
41 41
42 // Returns true on success, otherwise returns false. 42 // Returns true on success, otherwise returns false.
43 virtual bool UnSetVar(const char* variable_name) = 0; 43 virtual bool UnSetVar(const char* variable_name) = 0;
44 }; 44 };
45 45
46 } // namespace base 46 } // namespace base
47 47
48 #endif // BASE_ENVIRONMENT_H_ 48 #endif // BASE_ENVIRONMENT_H_
OLDNEW
« no previous file with comments | « app/l10n_util_unittest.cc ('k') | base/environment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698