diff options
Diffstat (limited to 'chrome/browser/prefs/proxy_config_dictionary.cc')
-rw-r--r-- | chrome/browser/prefs/proxy_config_dictionary.cc | 30 |
1 files changed, 6 insertions, 24 deletions
diff --git a/chrome/browser/prefs/proxy_config_dictionary.cc b/chrome/browser/prefs/proxy_config_dictionary.cc index b6db822..a99fa7c 100644 --- a/chrome/browser/prefs/proxy_config_dictionary.cc +++ b/chrome/browser/prefs/proxy_config_dictionary.cc @@ -67,20 +67,12 @@ bool ProxyConfigDictionary::HasBypassList() const { // static DictionaryValue* ProxyConfigDictionary::CreateDirect() { - return CreateDictionary(ProxyPrefs::MODE_DIRECT, - std::string(), - false, - std::string(), - std::string()); + return CreateDictionary(ProxyPrefs::MODE_DIRECT, "", false, "", ""); } // static DictionaryValue* ProxyConfigDictionary::CreateAutoDetect() { - return CreateDictionary(ProxyPrefs::MODE_AUTO_DETECT, - std::string(), - false, - std::string(), - std::string()); + return CreateDictionary(ProxyPrefs::MODE_AUTO_DETECT, "", false, "", ""); } // static @@ -88,10 +80,7 @@ DictionaryValue* ProxyConfigDictionary::CreatePacScript( const std::string& pac_url, bool pac_mandatory) { return CreateDictionary(ProxyPrefs::MODE_PAC_SCRIPT, - pac_url, - pac_mandatory, - std::string(), - std::string()); + pac_url, pac_mandatory, "", ""); } // static @@ -99,11 +88,8 @@ DictionaryValue* ProxyConfigDictionary::CreateFixedServers( const std::string& proxy_server, const std::string& bypass_list) { if (!proxy_server.empty()) { - return CreateDictionary(ProxyPrefs::MODE_FIXED_SERVERS, - std::string(), - false, - proxy_server, - bypass_list); + return CreateDictionary( + ProxyPrefs::MODE_FIXED_SERVERS, "", false, proxy_server, bypass_list); } else { return CreateDirect(); } @@ -111,11 +97,7 @@ DictionaryValue* ProxyConfigDictionary::CreateFixedServers( // static DictionaryValue* ProxyConfigDictionary::CreateSystem() { - return CreateDictionary(ProxyPrefs::MODE_SYSTEM, - std::string(), - false, - std::string(), - std::string()); + return CreateDictionary(ProxyPrefs::MODE_SYSTEM, "", false, "", ""); } // static |