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

Unified Diff: base/environment.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/environment.h ('k') | base/environment_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/environment.cc
diff --git a/base/environment.cc b/base/environment.cc
index 4ff6a74252f9bf7f5139a6556786c6ea42999149..6a6b556867992f44819667ed42ed6b13d74406ce 100644
--- a/base/environment.cc
+++ b/base/environment.cc
@@ -40,8 +40,8 @@ class EnvironmentImpl : public base::Environment {
return GetEnvImpl(alternate_case_var.c_str(), result);
}
- virtual bool SetEnv(const char* variable_name, const std::string& new_value) {
- return SetEnvImpl(variable_name, new_value);
+ virtual bool SetVar(const char* variable_name, const std::string& new_value) {
+ return SetVarImpl(variable_name, new_value);
}
virtual bool UnSetVar(const char* variable_name) {
@@ -75,7 +75,7 @@ class EnvironmentImpl : public base::Environment {
#endif
}
- bool SetEnvImpl(const char* variable_name, const std::string& new_value) {
+ bool SetVarImpl(const char* variable_name, const std::string& new_value) {
#if defined(OS_POSIX)
// On success, zero is returned.
return setenv(variable_name, new_value.c_str(), 1) == 0;
« no previous file with comments | « base/environment.h ('k') | base/environment_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698