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

Side by Side Diff: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc

Issue 2167473002: MD Settings: Internet: Reduce use of hidden for complex sections. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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
« no previous file with comments | « chrome/browser/resources/settings/internet_page/network_summary_item.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/settings/md_settings_localized_strings_provide r.h" 5 #include "chrome/browser/ui/webui/settings/md_settings_localized_strings_provide r.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/i18n/number_formatting.h" 10 #include "base/i18n/number_formatting.h"
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 // settings_strings.grdp or provide an alternative translation method. 632 // settings_strings.grdp or provide an alternative translation method.
633 // crbug.com/512214. 633 // crbug.com/512214.
634 {"networkConnected", IDS_ASH_STATUS_TRAY_NETWORK_CONNECTED}, 634 {"networkConnected", IDS_ASH_STATUS_TRAY_NETWORK_CONNECTED},
635 {"networkConnecting", IDS_ASH_STATUS_TRAY_NETWORK_CONNECTING}, 635 {"networkConnecting", IDS_ASH_STATUS_TRAY_NETWORK_CONNECTING},
636 {"networkDisabled", IDS_OPTIONS_SETTINGS_NETWORK_DISABLED}, 636 {"networkDisabled", IDS_OPTIONS_SETTINGS_NETWORK_DISABLED},
637 {"networkNotConnected", IDS_ASH_STATUS_TRAY_NETWORK_NOT_CONNECTED}, 637 {"networkNotConnected", IDS_ASH_STATUS_TRAY_NETWORK_NOT_CONNECTED},
638 {"OncTypeCellular", IDS_NETWORK_TYPE_CELLULAR}, 638 {"OncTypeCellular", IDS_NETWORK_TYPE_CELLULAR},
639 {"OncTypeEthernet", IDS_NETWORK_TYPE_ETHERNET}, 639 {"OncTypeEthernet", IDS_NETWORK_TYPE_ETHERNET},
640 {"OncTypeVPN", IDS_NETWORK_TYPE_VPN}, 640 {"OncTypeVPN", IDS_NETWORK_TYPE_VPN},
641 {"OncTypeWiFi", IDS_NETWORK_TYPE_WIFI}, 641 {"OncTypeWiFi", IDS_NETWORK_TYPE_WIFI},
642 {"OncTypeWimax", IDS_NETWORK_TYPE_WIMAX}, 642 {"OncTypeWiMAX", IDS_NETWORK_TYPE_WIMAX},
643 {"vpnNameTemplate", 643 {"vpnNameTemplate",
644 IDS_OPTIONS_SETTINGS_SECTION_THIRD_PARTY_VPN_NAME_TEMPLATE}, 644 IDS_OPTIONS_SETTINGS_SECTION_THIRD_PARTY_VPN_NAME_TEMPLATE},
645 }; 645 };
646 AddLocalizedStringsBulk(html_source, localized_strings, 646 AddLocalizedStringsBulk(html_source, localized_strings,
647 arraysize(localized_strings)); 647 arraysize(localized_strings));
648 } 648 }
649 #endif 649 #endif
650 650
651 void AddLanguagesStrings(content::WebUIDataSource* html_source) { 651 void AddLanguagesStrings(content::WebUIDataSource* html_source) {
652 LocalizedString localized_strings[] = { 652 LocalizedString localized_strings[] = {
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
1343 #endif 1343 #endif
1344 AddUsersStrings(html_source); 1344 AddUsersStrings(html_source);
1345 AddWebContentStrings(html_source); 1345 AddWebContentStrings(html_source);
1346 1346
1347 policy_indicator::AddLocalizedStrings(html_source); 1347 policy_indicator::AddLocalizedStrings(html_source);
1348 1348
1349 html_source->SetJsonPath(kLocalizedStringsFile); 1349 html_source->SetJsonPath(kLocalizedStringsFile);
1350 } 1350 }
1351 1351
1352 } // namespace settings 1352 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/internet_page/network_summary_item.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698