| Index: chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc
|
| diff --git a/chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc
|
| index 4c337674a1f417124d0beacef2a05c8d6ce33c25..1fd2058dfca93fe480bd2ad490d291735f41d534 100644
|
| --- a/chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc
|
| +++ b/chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc
|
| @@ -102,8 +102,12 @@ CoreChromeOSOptionsHandler::~CoreChromeOSOptionsHandler() {
|
| void CoreChromeOSOptionsHandler::InitializeHandler() {
|
| CoreOptionsHandler::InitializeHandler();
|
|
|
| - proxy_prefs_.Init(Profile::FromWebUI(web_ui())->GetPrefs());
|
| - proxy_prefs_.Add(prefs::kProxy, this);
|
| + PrefService* prefs = Profile::FromWebUI(web_ui())->GetPrefs();
|
| + proxy_prefs_.Init(prefs);
|
| + proxy_prefs_.Add(prefs::kProxy,
|
| + base::Bind(&CoreChromeOSOptionsHandler::OnPreferenceChanged,
|
| + base::Unretained(this),
|
| + prefs));
|
| // Observe the chromeos::ProxyConfigServiceImpl for changes from the UI.
|
| PrefProxyConfigTracker* proxy_tracker =
|
| Profile::FromWebUI(web_ui())->GetProxyConfigTracker();
|
|
|