| Index: chrome/browser/ui/webui/options/chromeos/internet_options_handler_strings.cc
|
| diff --git a/chrome/browser/ui/webui/options/chromeos/internet_options_handler_strings.cc b/chrome/browser/ui/webui/options/chromeos/internet_options_handler_strings.cc
|
| index f87e73458fa6fc4dee100752ee7888a72e5f5900..d3e785cec11bf3f4f71e6fbad9957f0ac212c515 100644
|
| --- a/chrome/browser/ui/webui/options/chromeos/internet_options_handler_strings.cc
|
| +++ b/chrome/browser/ui/webui/options/chromeos/internet_options_handler_strings.cc
|
| @@ -8,7 +8,6 @@
|
| #include "base/values.h"
|
| #include "chrome/grit/generated_resources.h"
|
| #include "grit/ash_strings.h"
|
| -#include "third_party/cros_system_api/dbus/service_constants.h"
|
| #include "ui/base/l10n/l10n_util.h"
|
|
|
| namespace chromeos {
|
| @@ -50,11 +49,21 @@ StringResource kStringResources[] = {
|
|
|
| // ONC network states. Format is 'Onc' + key + value.
|
| // Note: '.' must be replaced with '-', e.g. VPN.Type -> OncVPN-Type
|
| + {"OncCellular-ActivationStateActivated",
|
| + IDS_CHROMEOS_NETWORK_ACTIVATION_STATE_ACTIVATED},
|
| + {"OncCellular-ActivationStateActivating",
|
| + IDS_CHROMEOS_NETWORK_ACTIVATION_STATE_ACTIVATING},
|
| + {"OncCellular-ActivationStateNotActivated",
|
| + IDS_CHROMEOS_NETWORK_ACTIVATION_STATE_NOT_ACTIVATED},
|
| + {"OncCellular-ActivationStatePartiallyActivated",
|
| + IDS_CHROMEOS_NETWORK_ACTIVATION_STATE_PARTIALLY_ACTIVATED},
|
| {"OncConnectionStateConnected", IDS_CHROMEOS_NETWORK_STATE_CONNECTED},
|
| {"OncConnectionStateConnecting", IDS_CHROMEOS_NETWORK_STATE_CONNECTING},
|
| {"OncConnectionStateNotConnected",
|
| IDS_CHROMEOS_NETWORK_STATE_NOT_CONNECTED},
|
| - {"OncConnectionStateUnknown", IDS_CHROMEOS_NETWORK_STATE_UNKNOWN},
|
| + {"OncCellular-RoamingStateHome", IDS_CHROMEOS_NETWORK_ROAMING_STATE_HOME},
|
| + {"OncCellular-RoamingStateRoaming",
|
| + IDS_CHROMEOS_NETWORK_ROAMING_STATE_ROAMING},
|
| {"OncTypeCellular", IDS_NETWORK_TYPE_CELLULAR},
|
| {"OncTypeEthernet", IDS_NETWORK_TYPE_ETHERNET},
|
| {"OncTypeWiFi", IDS_NETWORK_TYPE_WIFI},
|
| @@ -66,6 +75,8 @@ StringResource kStringResources[] = {
|
| {"OncVPN-TypeOpenVPN", IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_OPEN_VPN},
|
|
|
| // Internet details dialog.
|
| + {"restrictedNo", IDS_CONFIRM_MESSAGEBOX_NO_BUTTON_LABEL},
|
| + {"restrictedYes", IDS_CONFIRM_MESSAGEBOX_YES_BUTTON_LABEL},
|
| {"managedNetwork", IDS_OPTIONS_SETTINGS_MANAGED_NETWORK},
|
| {"wifiNetworkTabLabel", IDS_OPTIONS_SETTINGS_INTERNET_TAB_CONNECTION},
|
| {"vpnTabLabel", IDS_OPTIONS_SETTINGS_INTERNET_TAB_VPN},
|
| @@ -75,6 +86,9 @@ StringResource kStringResources[] = {
|
| {"securityTabLabel", IDS_OPTIONS_SETTINGS_INTERNET_TAB_SECURITY},
|
| {"proxyTabLabel", IDS_OPTIONS_SETTINGS_INTERNET_TAB_PROXY},
|
| {"connectionState", IDS_OPTIONS_SETTINGS_INTERNET_CONNECTION_STATE},
|
| + // TODO(stevenjb): Rename the IDS constant when we redesign the UI.
|
| + {"restrictedConnectivity",
|
| + IDS_OPTIONS_SETTINGS_INTERNET_CELLULAR_RESTRICTED_POOL},
|
| {"inetAddress", IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_ADDRESS},
|
| {"inetNetmask", IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_SUBNETMASK},
|
| {"inetGateway", IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_GATEWAY},
|
| @@ -135,7 +149,6 @@ StringResource kStringResources[] = {
|
| {"activationState",
|
| IDS_OPTIONS_SETTINGS_INTERNET_CELLULAR_ACTIVATION_STATE},
|
| {"roamingState", IDS_OPTIONS_SETTINGS_INTERNET_CELLULAR_ROAMING_STATE},
|
| - {"restrictedPool", IDS_OPTIONS_SETTINGS_INTERNET_CELLULAR_RESTRICTED_POOL},
|
| {"errorState", IDS_OPTIONS_SETTINGS_INTERNET_CELLULAR_ERROR_STATE},
|
| {"cellularManufacturer",
|
| IDS_OPTIONS_SETTINGS_INTERNET_CELLULAR_MANUFACTURER},
|
| @@ -176,53 +189,5 @@ void RegisterLocalizedStrings(base::DictionaryValue* localized_strings) {
|
| }
|
| }
|
|
|
| -std::string ActivationStateString(const std::string& activation_state) {
|
| - int id;
|
| - if (activation_state == shill::kActivationStateActivated)
|
| - id = IDS_CHROMEOS_NETWORK_ACTIVATION_STATE_ACTIVATED;
|
| - else if (activation_state == shill::kActivationStateActivating)
|
| - id = IDS_CHROMEOS_NETWORK_ACTIVATION_STATE_ACTIVATING;
|
| - else if (activation_state == shill::kActivationStateNotActivated)
|
| - id = IDS_CHROMEOS_NETWORK_ACTIVATION_STATE_NOT_ACTIVATED;
|
| - else if (activation_state == shill::kActivationStatePartiallyActivated)
|
| - id = IDS_CHROMEOS_NETWORK_ACTIVATION_STATE_PARTIALLY_ACTIVATED;
|
| - else
|
| - id = IDS_CHROMEOS_NETWORK_ACTIVATION_STATE_UNKNOWN;
|
| - return l10n_util::GetStringUTF8(id);
|
| -}
|
| -
|
| -std::string RoamingStateString(const std::string& roaming_state) {
|
| - int id;
|
| - if (roaming_state == shill::kRoamingStateHome)
|
| - id = IDS_CHROMEOS_NETWORK_ROAMING_STATE_HOME;
|
| - else if (roaming_state == shill::kRoamingStateRoaming)
|
| - id = IDS_CHROMEOS_NETWORK_ROAMING_STATE_ROAMING;
|
| - else
|
| - id = IDS_CHROMEOS_NETWORK_ROAMING_STATE_UNKNOWN;
|
| - return l10n_util::GetStringUTF8(id);
|
| -}
|
| -
|
| -std::string RestrictedStateString(const std::string& connection_state) {
|
| - int id;
|
| - if (connection_state == shill::kStatePortal)
|
| - id = IDS_CONFIRM_MESSAGEBOX_YES_BUTTON_LABEL;
|
| - else
|
| - id = IDS_CONFIRM_MESSAGEBOX_NO_BUTTON_LABEL;
|
| - return l10n_util::GetStringUTF8(id);
|
| -}
|
| -
|
| -std::string NetworkDeviceTypeString(const std::string& network_type) {
|
| - int id;
|
| - if (network_type == shill::kTypeEthernet)
|
| - id = IDS_STATUSBAR_NETWORK_DEVICE_ETHERNET;
|
| - else if (network_type == shill::kTypeWifi)
|
| - id = IDS_STATUSBAR_NETWORK_DEVICE_WIFI;
|
| - else if (network_type == shill::kTypeCellular)
|
| - id = IDS_STATUSBAR_NETWORK_DEVICE_CELLULAR;
|
| - else
|
| - id = IDS_STATUSBAR_NETWORK_DEVICE_UNKNOWN;
|
| - return l10n_util::GetStringUTF8(id);
|
| -}
|
| -
|
| } // namespace internet_options_strings
|
| } // namespace chromeos
|
|
|