| Index: chrome/browser/chromeos/proxy_cros_settings_provider.cc
|
| diff --git a/chrome/browser/chromeos/proxy_cros_settings_provider.cc b/chrome/browser/chromeos/proxy_cros_settings_provider.cc
|
| index 78489a10bc801842e28c6074d15b7e62caf47a62..ccb3e44edf1fab261b619e4edb337dd557fd34c9 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(
|
|
|