Chromium Code Reviews| 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..1312b7b4e4a516cb12810c906741dc0bb7be153d 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); |
|
kevers
2012/04/10 18:06:30
SetNetworkName is a no-op that is in the process o
|
| } |
| ProxySettingsUI::~ProxySettingsUI() { |
| @@ -99,14 +108,11 @@ ProxySettingsUI::~ProxySettingsUI() { |
| 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 |