From 8425adc0c9cd53f6e590825486276b05f09cf90b Mon Sep 17 00:00:00 2001 From: "mdm@chromium.org" Date: Sun, 18 Apr 2010 17:45:31 +0000 Subject: Linux: correctly ignore KDE "indirect" environment variable proxy settings when they are unset BUG=41095 TEST=configure KDE to use proxy settings from unset environment variables, it should not try to use the variable names as proxies Review URL: http://codereview.chromium.org/1518036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44892 0039d316-1c4b-4281-b951-d872f2087c98 --- net/proxy/proxy_config_service_linux.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'net/proxy/proxy_config_service_linux.cc') diff --git a/net/proxy/proxy_config_service_linux.cc b/net/proxy/proxy_config_service_linux.cc index efe2d13..376e6f3 100644 --- a/net/proxy/proxy_config_service_linux.cc +++ b/net/proxy/proxy_config_service_linux.cc @@ -652,6 +652,8 @@ class GConfSettingGetterImplKDE char* value = getenv(it->second.c_str()); if (value) it->second = value; + else + string_table_.erase(it); } } -- cgit v1.1