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

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

Issue 2824493003: MD Settings: Elim is-list-item from cr-network-list-item (Closed)
Patch Set: Fix function definition Created 3 years, 8 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_element_localized_strings_pro vider.h" 5 #include "chrome/browser/ui/webui/chromeos/network_element_localized_strings_pro vider.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "chrome/grit/generated_resources.h" 8 #include "chrome/grit/generated_resources.h"
9 #include "content/public/browser/web_ui_data_source.h" 9 #include "content/public/browser/web_ui_data_source.h"
10 10
11 namespace chromeos { 11 namespace chromeos {
12 namespace network_element { 12 namespace network_element {
13 13
14 void AddLocalizedStrings(content::WebUIDataSource* html_source) { 14 void AddLocalizedStrings(content::WebUIDataSource* html_source) {
15 struct { 15 struct {
16 const char* name; 16 const char* name;
17 int id; 17 int id;
18 } localized_strings[] = { 18 } localized_strings[] = {
19 {"OncTypeCellular", IDS_NETWORK_TYPE_CELLULAR}, 19 {"OncTypeCellular", IDS_NETWORK_TYPE_CELLULAR},
20 {"OncTypeEthernet", IDS_NETWORK_TYPE_ETHERNET}, 20 {"OncTypeEthernet", IDS_NETWORK_TYPE_ETHERNET},
21 {"OncTypeVPN", IDS_NETWORK_TYPE_VPN}, 21 {"OncTypeVPN", IDS_NETWORK_TYPE_VPN},
22 {"OncTypeWiFi", IDS_NETWORK_TYPE_WIFI}, 22 {"OncTypeWiFi", IDS_NETWORK_TYPE_WIFI},
23 {"OncTypeWiMAX", IDS_NETWORK_TYPE_WIMAX}, 23 {"OncTypeWiMAX", IDS_NETWORK_TYPE_WIMAX},
24 {"networkDisabled", IDS_SETTINGS_DEVICE_OFF},
25 {"networkListItemConnected", IDS_STATUSBAR_NETWORK_DEVICE_CONNECTED}, 24 {"networkListItemConnected", IDS_STATUSBAR_NETWORK_DEVICE_CONNECTED},
26 {"networkListItemConnecting", IDS_STATUSBAR_NETWORK_DEVICE_CONNECTING}, 25 {"networkListItemConnecting", IDS_STATUSBAR_NETWORK_DEVICE_CONNECTING},
27 {"networkListItemConnectingTo", IDS_NETWORK_LIST_CONNECTING_TO}, 26 {"networkListItemConnectingTo", IDS_NETWORK_LIST_CONNECTING_TO},
28 {"networkListItemNotConnected", IDS_NETWORK_LIST_NOT_CONNECTED}, 27 {"networkListItemNotConnected", IDS_NETWORK_LIST_NOT_CONNECTED},
29 {"vpnNameTemplate", IDS_NETWORK_LIST_THIRD_PARTY_VPN_NAME_TEMPLATE}, 28 {"vpnNameTemplate", IDS_NETWORK_LIST_THIRD_PARTY_VPN_NAME_TEMPLATE},
30 }; 29 };
31 for (const auto& entry : localized_strings) 30 for (const auto& entry : localized_strings)
32 html_source->AddLocalizedString(entry.name, entry.id); 31 html_source->AddLocalizedString(entry.name, entry.id);
33 } 32 }
34 33
35 } // namespace network_element 34 } // namespace network_element
36 } // namespace chromeos 35 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/settings_ui/settings_ui.js ('k') | chrome/test/data/webui/settings/internet_page_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698