diff options
Diffstat (limited to 'chrome/browser/chromeos/proxy_cros_settings_provider.cc')
-rw-r--r-- | chrome/browser/chromeos/proxy_cros_settings_provider.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/chrome/browser/chromeos/proxy_cros_settings_provider.cc b/chrome/browser/chromeos/proxy_cros_settings_provider.cc index 78489a1..ccb3e44 100644 --- a/chrome/browser/chromeos/proxy_cros_settings_provider.cc +++ b/chrome/browser/chromeos/proxy_cros_settings_provider.cc @@ -7,8 +7,7 @@ #include "base/command_line.h" #include "base/string_util.h" #include "chrome/browser/browser_list.h" -#include "chrome/browser/profiles/profile.h" -#include "chrome/browser/profiles/profile_manager.h" +#include "chrome/browser/browser_process.h" #include "chrome/common/chrome_switches.h" namespace chromeos { @@ -292,12 +291,7 @@ bool ProxyCrosSettingsProvider::HandlesSetting(const std::string& path) { chromeos::ProxyConfigServiceImpl* ProxyCrosSettingsProvider::GetConfigService() const { - Browser* browser = BrowserList::GetLastActive(); - // browser is NULL at OOBE/login stage. - Profile* profile = browser ? - browser->profile() : - ProfileManager::GetDefaultProfile(); - return profile->GetChromeOSProxyConfigServiceImpl(); + return g_browser_process->chromeos_proxy_config_service_impl(); } void ProxyCrosSettingsProvider::AppendPortIfValid( |