| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/webui/chromeos/network_ui.h" | 5 #include "chrome/browser/ui/webui/chromeos/network_ui.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 "managedFormatOption", | 182 "managedFormatOption", |
| 183 l10n_util::GetStringUTF16(IDS_NETWORK_UI_FORMAT_MANAGED)); | 183 l10n_util::GetStringUTF16(IDS_NETWORK_UI_FORMAT_MANAGED)); |
| 184 localized_strings->SetString( | 184 localized_strings->SetString( |
| 185 "stateFormatOption", | 185 "stateFormatOption", |
| 186 l10n_util::GetStringUTF16(IDS_NETWORK_UI_FORMAT_STATE)); | 186 l10n_util::GetStringUTF16(IDS_NETWORK_UI_FORMAT_STATE)); |
| 187 localized_strings->SetString( | 187 localized_strings->SetString( |
| 188 "shillFormatOption", | 188 "shillFormatOption", |
| 189 l10n_util::GetStringUTF16(IDS_NETWORK_UI_FORMAT_SHILL)); | 189 l10n_util::GetStringUTF16(IDS_NETWORK_UI_FORMAT_SHILL)); |
| 190 | 190 |
| 191 localized_strings->SetString( | 191 localized_strings->SetString( |
| 192 "globalPolicyLabel", |
| 193 l10n_util::GetStringUTF16(IDS_NETWORK_UI_GLOBAL_POLICY)); |
| 194 localized_strings->SetString( |
| 192 "visibleNetworksLabel", | 195 "visibleNetworksLabel", |
| 193 l10n_util::GetStringUTF16(IDS_NETWORK_UI_VISIBLE_NETWORKS)); | 196 l10n_util::GetStringUTF16(IDS_NETWORK_UI_VISIBLE_NETWORKS)); |
| 194 localized_strings->SetString( | 197 localized_strings->SetString( |
| 195 "favoriteNetworksLabel", | 198 "favoriteNetworksLabel", |
| 196 l10n_util::GetStringUTF16(IDS_NETWORK_UI_FAVORITE_NETWORKS)); | 199 l10n_util::GetStringUTF16(IDS_NETWORK_UI_FAVORITE_NETWORKS)); |
| 197 } | 200 } |
| 198 | 201 |
| 199 NetworkUI::NetworkUI(content::WebUI* web_ui) | 202 NetworkUI::NetworkUI(content::WebUI* web_ui) |
| 200 : content::WebUIController(web_ui) { | 203 : content::WebUIController(web_ui) { |
| 201 web_ui->AddMessageHandler(new NetworkConfigMessageHandler()); | 204 web_ui->AddMessageHandler(new NetworkConfigMessageHandler()); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 218 html->SetDefaultResource(IDR_NETWORK_UI_HTML); | 221 html->SetDefaultResource(IDR_NETWORK_UI_HTML); |
| 219 | 222 |
| 220 content::WebUIDataSource::Add(web_ui->GetWebContents()->GetBrowserContext(), | 223 content::WebUIDataSource::Add(web_ui->GetWebContents()->GetBrowserContext(), |
| 221 html); | 224 html); |
| 222 } | 225 } |
| 223 | 226 |
| 224 NetworkUI::~NetworkUI() { | 227 NetworkUI::~NetworkUI() { |
| 225 } | 228 } |
| 226 | 229 |
| 227 } // namespace chromeos | 230 } // namespace chromeos |
| OLD | NEW |