| Index: chrome/browser/ui/webui/chromeos/proxy_settings_ui.cc
|
| diff --git a/chrome/browser/ui/webui/chromeos/proxy_settings_ui.cc b/chrome/browser/ui/webui/chromeos/proxy_settings_ui.cc
|
| index 3c740748020b5c82b847ba34e84fe3a3e4adb2fa..44fc81cc8e143ceb471485affa0b076addf3ddea 100644
|
| --- a/chrome/browser/ui/webui/chromeos/proxy_settings_ui.cc
|
| +++ b/chrome/browser/ui/webui/chromeos/proxy_settings_ui.cc
|
| @@ -79,14 +79,23 @@ ProxySettingsUI::ProxySettingsUI(content::WebUI* web_ui)
|
| core_handler_->set_handlers_host(this);
|
| core_handler_->GetLocalizedValues(localized_strings);
|
| web_ui->AddMessageHandler(core_handler_);
|
| + core_handler_->InitializeHandler();
|
|
|
| proxy_handler_->GetLocalizedValues(localized_strings);
|
| web_ui->AddMessageHandler(proxy_handler_);
|
| + proxy_handler_->InitializeHandler();
|
|
|
| ProxySettingsHTMLSource* source =
|
| new ProxySettingsHTMLSource(localized_strings);
|
| Profile* profile = Profile::FromWebUI(web_ui);
|
| profile->GetChromeURLDataManager()->AddDataSource(source);
|
| +
|
| + PrefProxyConfigTracker* proxy_tracker = profile->GetProxyConfigTracker();
|
| + proxy_tracker->UIMakeActiveNetworkCurrent();
|
| +
|
| + std::string network_name;
|
| + proxy_tracker->UIGetCurrentNetworkName(&network_name);
|
| + proxy_handler_->SetNetworkName(network_name);
|
| }
|
|
|
| ProxySettingsUI::~ProxySettingsUI() {
|
| @@ -96,17 +105,9 @@ ProxySettingsUI::~ProxySettingsUI() {
|
| proxy_handler_->Uninitialize();
|
| }
|
|
|
| -void ProxySettingsUI::InitializeHandlers() {
|
| - core_handler_->InitializeHandler();
|
| - proxy_handler_->InitializeHandler();
|
| +void ProxySettingsUI::InitializePages() {
|
| core_handler_->InitializePage();
|
| proxy_handler_->InitializePage();
|
| - Profile* profile = Profile::FromWebUI(web_ui());
|
| - PrefProxyConfigTracker* proxy_tracker = profile->GetProxyConfigTracker();
|
| - proxy_tracker->UIMakeActiveNetworkCurrent();
|
| - std::string network_name;
|
| - proxy_tracker->UIGetCurrentNetworkName(&network_name);
|
| - proxy_handler_->SetNetworkName(network_name);
|
| }
|
|
|
| } // namespace chromeos
|
|
|