base: rename Environment::SetEnv to Environment::SetVar.
This is the part 3 of this series. One more remaining. Splitting this
into small parts, so it is more easy to review and reduce the size of the CL.
BUG=None
TEST=trybots
Review URL: http://codereview.chromium.org/2836088
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55168 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/base/environment.cc b/base/environment.cc
index 4ff6a74..6a6b5568 100644
--- a/base/environment.cc
+++ b/base/environment.cc
@@ -40,8 +40,8 @@
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 @@
#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;