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

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

Issue 2755173002: [CrOS Tether] Add a connection dialog to md-settings. (Closed)
Patch Set: dbeam@ comments. Created 3 years, 9 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/settings_resources.grd ('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 919 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 {"networkSimLockEnable", IDS_SETTINGS_INTERNET_NETWORK_SIM_LOCK_ENABLE}, 930 {"networkSimLockEnable", IDS_SETTINGS_INTERNET_NETWORK_SIM_LOCK_ENABLE},
931 {"networkSimLockedTitle", IDS_SETTINGS_INTERNET_NETWORK_SIM_LOCKED_TITLE}, 931 {"networkSimLockedTitle", IDS_SETTINGS_INTERNET_NETWORK_SIM_LOCKED_TITLE},
932 {"networkSimLockedWarning", 932 {"networkSimLockedWarning",
933 IDS_SETTINGS_INTERNET_NETWORK_SIM_LOCKED_WARNING}, 933 IDS_SETTINGS_INTERNET_NETWORK_SIM_LOCKED_WARNING},
934 {"networkSimReEnterNewPin", 934 {"networkSimReEnterNewPin",
935 IDS_SETTINGS_INTERNET_NETWORK_SIM_RE_ENTER_NEW_PIN}, 935 IDS_SETTINGS_INTERNET_NETWORK_SIM_RE_ENTER_NEW_PIN},
936 {"networkSimReEnterNewPin", 936 {"networkSimReEnterNewPin",
937 IDS_SETTINGS_INTERNET_NETWORK_SIM_RE_ENTER_NEW_PIN}, 937 IDS_SETTINGS_INTERNET_NETWORK_SIM_RE_ENTER_NEW_PIN},
938 {"networkSimUnlock", IDS_SETTINGS_INTERNET_NETWORK_SIM_BUTTON_UNLOCK}, 938 {"networkSimUnlock", IDS_SETTINGS_INTERNET_NETWORK_SIM_BUTTON_UNLOCK},
939 {"networkVpnBuiltin", IDS_NETWORK_TYPE_VPN_BUILTIN}, 939 {"networkVpnBuiltin", IDS_NETWORK_TYPE_VPN_BUILTIN},
940 {"tetherConnectionDialogTitle",
941 IDS_SETTINGS_INTERNET_TETHER_CONNECTION_DIALOG_TITLE},
942 {"tetherConnectionBatteryPercentage",
943 IDS_SETTINGS_INTERNET_TETHER_CONNECTION_BATTERY_PERCENTAGE},
944 {"tetherConnectionExplanation",
945 IDS_SETTINGS_INTERNET_TETHER_CONNECTION_EXPLANATION},
946 {"tetherConnectionCarrierWarning",
947 IDS_SETTINGS_INTERNET_TETHER_CONNECTION_CARRIER_WARNING},
948 {"tetherConnectionDescriptionTitle",
949 IDS_SETTINGS_INTERNET_TETHER_CONNECTION_DESCRIPTION_TITLE},
950 {"tetherConnectionDescriptionCellData",
951 IDS_SETTINGS_INTERNET_TETHER_CONNECTION_DESCRIPTION_CELLULAR_DATA},
952 {"tetherConnectionDescriptionBattery",
953 IDS_SETTINGS_INTERNET_TETHER_CONNECTION_DESCRIPTION_BATTERY},
954 {"tetherConnectionDescriptionWiFi",
955 IDS_SETTINGS_INTERNET_TETHER_CONNECTION_DESCRIPTION_WIFI},
956 {"tetherConnectionNotNowButton",
957 IDS_SETTINGS_INTERNET_TETHER_CONNECTION_NOT_NOW_BUTTON},
958 {"tetherConnectionConnectButton",
959 IDS_SETTINGS_INTERNET_TETHER_CONNECTION_CONNECT_BUTTON},
940 }; 960 };
941 AddLocalizedStringsBulk(html_source, localized_strings, 961 AddLocalizedStringsBulk(html_source, localized_strings,
942 arraysize(localized_strings)); 962 arraysize(localized_strings));
943 } 963 }
944 #endif 964 #endif
945 965
946 void AddLanguagesStrings(content::WebUIDataSource* html_source) { 966 void AddLanguagesStrings(content::WebUIDataSource* html_source) {
947 LocalizedString localized_strings[] = { 967 LocalizedString localized_strings[] = {
948 {"languagesPageTitle", IDS_SETTINGS_LANGUAGES_PAGE_TITLE}, 968 {"languagesPageTitle", IDS_SETTINGS_LANGUAGES_PAGE_TITLE},
949 {"languagesListTitle", IDS_SETTINGS_LANGUAGES_LANGUAGES_LIST_TITLE}, 969 {"languagesListTitle", IDS_SETTINGS_LANGUAGES_LANGUAGES_LIST_TITLE},
(...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after
1984 2004
1985 #if defined(OS_CHROMEOS) 2005 #if defined(OS_CHROMEOS)
1986 chromeos::network_element::AddLocalizedStrings(html_source); 2006 chromeos::network_element::AddLocalizedStrings(html_source);
1987 #endif 2007 #endif
1988 policy_indicator::AddLocalizedStrings(html_source); 2008 policy_indicator::AddLocalizedStrings(html_source);
1989 2009
1990 html_source->SetJsonPath(kLocalizedStringsFile); 2010 html_source->SetJsonPath(kLocalizedStringsFile);
1991 } 2011 }
1992 2012
1993 } // namespace settings 2013 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/settings_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698