base: rename Environment::GetEnv to Environment::GetVar.

This is the part 4 and the latest of this series.

BUG=None
TEST=trybots

Review URL: http://codereview.chromium.org/3029062

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55326 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/base/environment.cc b/base/environment.cc
index 6a6b5568..2f2431e6 100644
--- a/base/environment.cc
+++ b/base/environment.cc
@@ -21,8 +21,8 @@
 
 class EnvironmentImpl : public base::Environment {
  public:
-  virtual bool GetEnv(const char* variable_name, std::string* result) {
-    if (GetEnvImpl(variable_name, result))
+  virtual bool GetVar(const char* variable_name, std::string* result) {
+    if (GetVarImpl(variable_name, result))
       return true;
 
     // Some commonly used variable names are uppercase while others
@@ -37,7 +37,7 @@
       alternate_case_var = StringToLowerASCII(std::string(variable_name));
     else
       return false;
-    return GetEnvImpl(alternate_case_var.c_str(), result);
+    return GetVarImpl(alternate_case_var.c_str(), result);
   }
 
   virtual bool SetVar(const char* variable_name, const std::string& new_value) {
@@ -49,7 +49,7 @@
   }
 
  private:
-  bool GetEnvImpl(const char* variable_name, std::string* result) {
+  bool GetVarImpl(const char* variable_name, std::string* result) {
 #if defined(OS_POSIX)
     const char* env_value = getenv(variable_name);
     if (!env_value)
@@ -120,7 +120,7 @@
 }
 
 bool Environment::HasVar(const char* variable_name) {
-  return GetEnv(variable_name, NULL);
+  return GetVar(variable_name, NULL);
 }
 
 }  // namespace base