Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: chrome/browser/ui/webui/chromeos/network_ui.cc

Issue 2620463003: Add getGlobalPolicy to networkingPrivate API. (Closed)
Patch Set: Add dcheck Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698