Chromium Code Reviews| Index: chrome/browser/chromeos/proxy_config_service_impl.h |
| diff --git a/chrome/browser/chromeos/proxy_config_service_impl.h b/chrome/browser/chromeos/proxy_config_service_impl.h |
| index 93586a08c2b6695d7b5f5bcf134eef67e4628ac2..de42462fb2c6948e7e7509e0065dd9062e895886 100644 |
| --- a/chrome/browser/chromeos/proxy_config_service_impl.h |
| +++ b/chrome/browser/chromeos/proxy_config_service_impl.h |
| @@ -54,15 +54,19 @@ class ProxyConfigServiceImpl : public PrefProxyConfigTrackerImpl, |
| void DefaultNetworkChanged(const NetworkState* network) override; |
| void OnShuttingDown() override; |
| - protected: |
| - friend class UIProxyConfigService; |
| - |
| // Returns true if proxy is to be ignored for this network profile and |
| // |onc_source|, e.g. this happens if the network is shared and |
| // use-shared-proxies is turned off. |profile_prefs| may be NULL. |
| static bool IgnoreProxy(const PrefService* profile_prefs, |
| const std::string network_profile_path, |
| - onc::ONCSource onc_source); |
| + ::onc::ONCSource onc_source); |
| + |
| + // Returns Pref Proxy configuration if available or a proxy config dictionary |
| + // applied to the default network. |
| + // Returns NULL, if there is no active connected network. |
|
stevenjb
2016/09/12 21:21:44
// Otherwise returns null.
or
// Returns null if
Polina Bondarenko
2016/09/12 22:10:22
Done.
|
| + // |profile_prefs| must be not NULL. |
| + static std::unique_ptr<ProxyConfigDictionary> GetActiveProxyConfigDictionary( |
| + const PrefService* profile_prefs); |
| private: |
| // Called when any proxy preference changes. |