diff options
author | dconnelly@chromium.org <dconnelly@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-26 14:57:34 +0000 |
---|---|---|
committer | dconnelly@chromium.org <dconnelly@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-26 14:57:34 +0000 |
commit | dae12fe9593a941572061753048c571fb6552be4 (patch) | |
tree | 5c6db0724a9a1cf3df8130b91143617b711e1fb5 | |
parent | 65d064fe5bfcb145e882f5cf943d4a0b69c874e3 (diff) | |
download | chromium_src-dae12fe9593a941572061753048c571fb6552be4.zip chromium_src-dae12fe9593a941572061753048c571fb6552be4.tar.gz chromium_src-dae12fe9593a941572061753048c571fb6552be4.tar.bz2 |
Move policy strings to components/policy_strings.grdp.
This facilitates the refactoring of chrome/browser/policy into a layered
component.
BUG=271392
TBR=joi
Review URL: https://codereview.chromium.org/85753005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237336 0039d316-1c4b-4281-b951-d872f2087c98
27 files changed, 321 insertions, 312 deletions
diff --git a/chrome/app/generated_resources.grd b/chrome/app/generated_resources.grd index 502af6e..2c4f0d2 100644 --- a/chrome/app/generated_resources.grd +++ b/chrome/app/generated_resources.grd @@ -5295,293 +5295,6 @@ Keep your key file in a safe place. You will need it to create new versions of y PPAPI (unsandboxed) </message> - <!-- policy status messages --> - <message name="IDS_POLICY_DM_STATUS_SUCCESS" desc="Message indicating a successful device management server call."> - Request succeeded - </message> - <message name="IDS_POLICY_DM_STATUS_REQUEST_INVALID" desc="Message indicating a bad request to the enterprise server."> - Invalid request or request parameters - </message> - <message name="IDS_POLICY_DM_STATUS_REQUEST_FAILED" desc="Message indicating the request to the enterprise server failed in the network."> - Network error - </message> - <message name="IDS_POLICY_DM_STATUS_TEMPORARY_UNAVAILABLE" desc="Message indicating a temporary problem on the enterprise server."> - Temporary server error - </message> - <message name="IDS_POLICY_DM_STATUS_HTTP_STATUS_ERROR" desc="Message indicating an abnormal response code from the enterprise server."> - HTTP error - </message> - <message name="IDS_POLICY_DM_STATUS_RESPONSE_DECODING_ERROR" desc="Message indicating a problem decoding a response from the enterprise server."> - Failed to decode response - </message> - <message name="IDS_POLICY_DM_STATUS_SERVICE_MANAGEMENT_NOT_SUPPORTED" desc="Message indicating that enterprise management is not applicable to the user/device."> - Management not supported - </message> - <message name="IDS_POLICY_DM_STATUS_SERVICE_DEVICE_NOT_FOUND" desc="Message indicating the enterprise server is missing a device record."> - Missing device record - </message> - <message name="IDS_POLICY_DM_STATUS_SERVICE_MANAGEMENT_TOKEN_INVALID" desc="Message indicating the token used to authenticate to the enterprise server is invalid."> - Invalid device management token - </message> - <message name="IDS_POLICY_DM_STATUS_SERVICE_ACTIVATION_PENDING" desc="Message indicating enterprise management must first be activated for this user/device."> - Activation is pending on the server - </message> - <message name="IDS_POLICY_DM_STATUS_SERVICE_INVALID_SERIAL_NUMBER" desc="Message indicating the provided device serial number is invalid."> - Device serial number is invalid - </message> - <message name="IDS_POLICY_DM_STATUS_SERVICE_DEVICE_ID_CONFLICT" desc="Message indicating the chosen device identifier is already used."> - Conflicting device identifier - </message> - <message name="IDS_POLICY_DM_STATUS_SERVICE_MISSING_LICENSES" desc="Message indicating the enterprise server doesn't have enough licenses to allow management."> - Licenses exhausted - </message> - <message name="IDS_POLICY_DM_STATUS_SERVICE_POLICY_NOT_FOUND" desc="Message indicating that the enterprise server failed to find the policy to be applied to the device."> - Policy not found - </message> - <message name="IDS_POLICY_DM_STATUS_UNKNOWN_ERROR" desc="Message indicating an unknown error from the enterprise server."> - Unknown error - </message> - - <message name="IDS_POLICY_VALIDATION_OK" desc="Message indicating successful policy validation."> - Validation successful - </message> - <message name="IDS_POLICY_VALIDATION_BAD_INITIAL_SIGNATURE" desc="Message indicating a bad signature on policy validation using the initial key."> - Bad intial signature - </message> - <message name="IDS_POLICY_VALIDATION_BAD_SIGNATURE" desc="Message indicating a bad signature on policy validation."> - Bad signature - </message> - <message name="IDS_POLICY_VALIDATION_ERROR_CODE_PRESENT" desc="Message indicating policy validation failure due to an error code in the policy."> - Error code present in the policy response - </message> - <message name="IDS_POLICY_VALIDATION_PAYLOAD_PARSE_ERROR" desc="Message indicating a policy parse error during policy validation."> - Error parsing policy - </message> - <message name="IDS_POLICY_VALIDATION_WRONG_POLICY_TYPE" desc="Message indicating the policy did not have the expected type."> - Wrong policy type - </message> - <message name="IDS_POLICY_VALIDATION_WRONG_SETTINGS_ENTITY_ID" desc="Message indicating the policy did not have the expected entity identifier."> - Wrong entity identifier - </message> - <message name="IDS_POLICY_VALIDATION_BAD_TIMESTAMP" desc="Message indicating the policy timestamp is bad."> - Bad policy timestamp - </message> - <message name="IDS_POLICY_VALIDATION_WRONG_TOKEN" desc="Message indicating the policy token is different from the one expected."> - Returned policy token doesn't match current token - </message> - <message name="IDS_POLICY_VALIDATION_BAD_USERNAME" desc="Message indicating policy validation failed due to bad username/domain."> - Wrong policy subject - </message> - <message name="IDS_POLICY_VALIDATION_POLICY_PARSE_ERROR" desc="Message indicating a parse error in policy."> - Error parsing policy settings - </message> - <message name="IDS_POLICY_VALIDATION_UNKNOWN_ERROR" desc="Message indicating unknown error in policy validation."> - Unknown error - </message> - - <message name="IDS_POLICY_STORE_STATUS_OK" desc="Message indicating a healthy policy store."> - Policy cache OK - </message> - <message name="IDS_POLICY_STORE_STATUS_LOAD_ERROR" desc="Message indicating a failure to load policy."> - Failed to load policy settings - </message> - <message name="IDS_POLICY_STORE_STATUS_STORE_ERROR" desc="Message indicating a failure to store policy."> - Failed to store policy settings - </message> - <message name="IDS_POLICY_STORE_STATUS_PARSE_ERROR" desc="Message indicating a parse error on loading policy"> - Policy parse error - </message> - <message name="IDS_POLICY_STORE_STATUS_SERIALIZE_ERROR" desc="Message indicating an error preparing policy for storage."> - Serialization error - </message> - <message name="IDS_POLICY_STORE_STATUS_VALIDATION_ERROR" desc="Message indicating policy validation on store/load failed."> - Validation error: <ph name="VALIDATION_ERROR">$1<ex>Bad signature</ex></ph>. - </message> - <message name="IDS_POLICY_STORE_STATUS_BAD_STATE" desc="Message indicating policy cannot be stored/loaded due to the backend being in bad state."> - Backing store in bad state - </message> - <message name="IDS_POLICY_STORE_STATUS_UNKNOWN_ERROR" desc="Message indicating an unknown error with the policy cache."> - Unknown error - </message> - - <message name="IDS_POLICY_TYPE_ERROR" desc="The text displayed in the status column when a policy value has the wrong type."> - Expected <ph name="VALUE_TYPE">$1<ex>boolean</ex></ph> value. - </message> - <message name="IDS_POLICY_OUT_OF_RANGE_ERROR" desc="The text displayed in the status column when a policy value is out of range."> - Value is out of range <ph name="VALUE">$1<ex>10</ex></ph>. - </message> - <message name="IDS_POLICY_VALUE_FORMAT_ERROR" desc="The text displayed in the status column when a policy value doesn't match the expected format."> - Value doesn't match format. - </message> - <message name="IDS_POLICY_DEFAULT_SEARCH_DISABLED" desc="The text displayed in the status column when a policy value has been ignored because default search has been disabled."> - Ignored because default search is disabled by policy. - </message> - <message name="IDS_POLICY_NOT_SPECIFIED_ERROR" desc="The text displayed in the status column when a policy value should have been specified but wasn't."> - Must be specified. - </message> - <message name="IDS_POLICY_SUBKEY_ERROR" desc="The text displayed in the status column for errors in a subkey of a policy."> - Key "<ph name="SUBKEY">$1<ex>ProxyMode</ex></ph>": <ph name="ERROR">$2<ex>Must be specified.</ex></ph> - </message> - <message name="IDS_POLICY_LIST_ENTRY_ERROR" desc="The text displayed in the status column for errors in list entry in a policy."> - List entry "<ph name="ENTRY_INDEX">$1<ex>3</ex></ph>": <ph name="ERROR">$2<ex>Value is out of range.</ex></ph> - </message> - <message name="IDS_POLICY_INVALID_SEARCH_URL_ERROR" desc="The text displayed in the status column when a the URL given for DefaultSearchProviderSearchURL is invalid."> - Invalid search URL. - </message> - <message name="IDS_POLICY_INVALID_PROXY_MODE_ERROR" desc="The text displayed in the status column when the value for ProxyMode is invalid."> - Invalid proxy mode. - </message> - <message name="IDS_POLICY_PROXY_MODE_DISABLED_ERROR" desc="The text displayed in the status column when use of a proxy is disabled but a proxy configuration is given."> - Use of a proxy is disabled but an explicit proxy configuration is specified. - </message> - <message name="IDS_POLICY_PROXY_MODE_AUTO_DETECT_ERROR" desc="The text displayed in the status column when the proxy is set to auto configured but a proxy configuration is given."> - Proxy is set to auto configured. - </message> - <message name="IDS_POLICY_PROXY_MODE_PAC_URL_ERROR" desc="The text displayed in the status column when the proxy configuration is set to use a .pac script URL but policies only for fixed proxy servers are also specified."> - Proxy configuration is set to use a .pac script URL, not fixed proxy servers. - </message> - <message name="IDS_POLICY_PROXY_MODE_FIXED_SERVERS_ERROR" desc="The text displayed in the status column when the proxy configuration is set to use fixed proxy servers but an alternate configuration is given."> - Proxy is set to use fixed proxy servers, not a .pac script URL. - </message> - <message name="IDS_POLICY_PROXY_MODE_SYSTEM_ERROR" desc="The text displayed in the status column when the proxy configuration is set to use system settings but an alternate configuration is given."> - System proxy settings are set to be used but an explicit proxy configuration is also specified. - </message> - <message name="IDS_POLICY_PROXY_BOTH_SPECIFIED_ERROR" desc="The text displayed in the status column when both fixed proxy servers and .pac url are specified."> - Both fixed proxy servers and a .pac script URL are specified. - </message> - <message name="IDS_POLICY_PROXY_NEITHER_SPECIFIED_ERROR" desc="The text displayed in the status column when neither a fixed proxy servers or a .pac url are specified."> - Neither fixed proxy servers nor a .pac script URL are specified. - </message> - <message name="IDS_POLICY_OVERRIDDEN" desc="The text displayed in the status column when the corresponding policy is being ignored because another policy is overriding it."> - Ignored because it was overridden by <ph name="POLICY_NAME">$1<ex>ProxyMode</ex></ph>. - </message> - <message name="IDS_POLICY_DEPRECATED" desc="The text displayed in the status column when the corresponding policy is deprecated."> - This policy has been deprecated. - </message> - <message name="IDS_POLICY_VALUE_DEPRECATED" desc="The text displayed in the status column when a specific value for a policy is deprecated."> - This value is deprecated for this policy. - </message> - <message name="IDS_POLICY_NETWORK_CONFIG_PARSE_FAILED" desc="The text displayed in the status column when the corresponding network configuration policy failed to parse."> - Network configuration failed to be parsed. - </message> - <message name="IDS_POLICY_NETWORK_CONFIG_IMPORT_PARTIAL" desc="The text displayed in the status column when the corresponding network configuration policy is not standard conform and was imported partially."> - The network configuration doesn't comply to the ONC standard. Parts of the configuration may not be imported. - </message> - <message name="IDS_POLICY_NETWORK_CONFIG_IMPORT_FAILED" desc="The text displayed in the status column when the corresponding network configuration policy is invalid."> - The network configuration is invalid and couldn't be imported. - </message> - <message name="IDS_POLICY_JSON_PARSE_ERROR" desc="The text displayed in the status column when a policy that should have been specified in JSON format could not be parsed."> - Failed to parse JSON format: <ph name="JSON_PARSE_ERROR">$1<ex>Unexpected token.</ex></ph> - </message> - <message name="IDS_POLICY_OK" desc="Text displayed in the status column when a valid value is set for a policy."> - OK - </message> - <message name="IDS_POLICY_UNSET" desc="Text displayed in the status column when no value is set for a policy."> - Not set. - </message> - <message name="IDS_POLICY_UNKNOWN" desc="Text displayed in the status column when a policy name is not recognized."> - Unknown policy. - </message> - <message name="IDS_POLICY_INVALID_BOOKMARK" desc="Text displayed in the status column when an entry of the ManagedBookmarks policy is not a valid bookmark."> - Ignored invalid bookmark at index <ph name="ENTRY_INDEX">$1<ex>3</ex></ph> - </message> - - <!-- chrome://policy --> - <message name="IDS_POLICY_TITLE" desc="Page title and the title of the section that lists policies."> - Policies - </message> - <message name="IDS_POLICY_FILTER_PLACEHOLDER" desc="Placeholder for the input field that lets the user filter policies by name."> - Filter policies by name - </message> - <message name="IDS_POLICY_RELOAD_POLICIES" desc="Label for the button that reloads policies."> - Reload policies - </message> - <message name="IDS_POLICY_STATUS" desc="Title of the status section."> - Status - </message> - <message name="IDS_POLICY_STATUS_DEVICE" desc="Title for the device policy status box."> - Device policies - </message> - <message name="IDS_POLICY_STATUS_USER" desc="Title for the user policy status box."> - User policies - </message> - <message name="IDS_POLICY_LABEL_DOMAIN" desc="Label for the enrollment domain in the device policy status box."> - Enrollment domain: - </message> - <message name="IDS_POLICY_LABEL_USERNAME" desc="Label for the username in the user policy status box."> - User: - </message> - <message name="IDS_POLICY_LABEL_CLIENT_ID" desc="Label for the client IDs in the policy status boxes."> - Client ID: - </message> - <message name="IDS_POLICY_LABEL_TIME_SINCE_LAST_REFRESH" desc="Label for the time since the last refresh in the policy status boxes."> - Last fetched: - </message> - <message name="IDS_POLICY_NEVER_FETCHED" desc="Indicates that a policy fetch was never performed before."> - Never - </message> - <message name="IDS_POLICY_LABEL_REFRESH_INTERVAL" desc="Label for the refresh interval in the policy status boxes."> - Fetch interval: - </message> - <message name="IDS_POLICY_LABEL_STATUS" desc="Label for the actual status in the policy status boxes."> - Status: - </message> - <message name="IDS_POLICY_SHOW_UNSET" desc="Label for the checkbox that determines whether policies whose value has not been set are shown."> - Show policies with no value set - </message> - <message name="IDS_POLICY_NO_POLICIES_SET" desc="Text displayed when none of the policies have been set."> - No policies set - </message> - <message name="IDS_POLICY_HEADER_SCOPE" desc="Table header for the column in the policy table that details whether a policy is a user or a device policy."> - Applies to - </message> - <message name="IDS_POLICY_HEADER_LEVEL" desc="Table header for the column in the policy table that details whether a policy is mandatory or recommended."> - Level - </message> - <message name="IDS_POLICY_HEADER_NAME" desc="Table header for the column in the policy table that contains the policy name."> - Policy name - </message> - <message name="IDS_POLICY_HEADER_VALUE" desc="Table header for the column in the policy table that contains the policy value."> - Policy value - </message> - <message name="IDS_POLICY_HEADER_STATUS" desc="Table header for the column in policy table that contains the policy status."> - Status - </message> - <message name="IDS_POLICY_SHOW_EXPANDED_VALUE" desc="Text for the link that shows the policy value. Used when the policy value is too long to be always visible."> - Show value - </message> - <message name="IDS_POLICY_HIDE_EXPANDED_VALUE" desc="Text for the link that hides the policy value. Used when the policy value is too long to be always visible."> - Hide value - </message> - <message name="IDS_POLICY_SCOPE_USER" desc="Text displayed in the Applies to column when a policy applies to the current user only."> - Current user - </message> - <if expr="not is_android and not pp_ifdef('chromeos')"> - <message name="IDS_POLICY_SCOPE_DEVICE" desc="Text displayed in the Applies to column when a policy applies to everyone on the machine."> - Machine - </message> - </if> - <if expr="pp_ifdef('chromeos') or is_android"> - <message name="IDS_POLICY_SCOPE_DEVICE" desc="Mobile: Text displayed in the Applies To column when a policy applies to everyone on the device."> - Device - </message> - </if> - <message name="IDS_POLICY_LEVEL_RECOMMENDED" desc="Text displayed in the Level column when a policy is recommended."> - Recommended - </message> - <message name="IDS_POLICY_LEVEL_MANDATORY" desc="Text displayed in the Level column when a policy is mandatory."> - Mandatory - </message> - - <if expr="is_android"> - <message name="IDS_POLICY_MANAGED_BOOKMARKS" desc="Mobile: name of the managed bookmarks folder"> - <ph name="DOMAIN">$1<ex>google.com</ex></ph> bookmarks - </message> - <message name="IDS_POLICY_MANAGED_BOOKMARKS_DEFAULT_NAME" desc="Mobile: name of the managed bookmarks folder when the management domain can't be determined."> - Managed bookmarks - </message> - </if> - <!-- about:flags --> <message name="IDS_FLAGS_LONG_TITLE" desc="Long version of the title for the about:flags page."> Careful, these experiments may bite diff --git a/chrome/browser/android/bookmarks/managed_bookmarks_shim.cc b/chrome/browser/android/bookmarks/managed_bookmarks_shim.cc index 2fb6ab6..29dcf38 100644 --- a/chrome/browser/android/bookmarks/managed_bookmarks_shim.cc +++ b/chrome/browser/android/bookmarks/managed_bookmarks_shim.cc @@ -12,7 +12,7 @@ #include "chrome/browser/policy/configuration_policy_handler_android.h" #include "chrome/common/pref_names.h" #include "google_apis/gaia/gaia_auth_util.h" -#include "grit/generated_resources.h" +#include "grit/component_strings.h" #include "ui/base/l10n/l10n_util.h" using policy::ManagedBookmarksPolicyHandler; diff --git a/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc b/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc index 20cae31..0a48afb7 100644 --- a/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc +++ b/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc @@ -25,7 +25,7 @@ #include "components/onc/onc_constants.h" #include "components/policy/core/common/external_data_fetcher.h" #include "components/policy/core/common/policy_map.h" -#include "grit/generated_resources.h" +#include "grit/component_strings.h" #include "policy/policy_constants.h" namespace policy { diff --git a/chrome/browser/chromeos/policy/login_screen_power_management_policy.cc b/chrome/browser/chromeos/policy/login_screen_power_management_policy.cc index a22aa79..93aad57 100644 --- a/chrome/browser/chromeos/policy/login_screen_power_management_policy.cc +++ b/chrome/browser/chromeos/policy/login_screen_power_management_policy.cc @@ -10,7 +10,7 @@ #include "chrome/browser/policy/configuration_policy_handler.h" #include "chrome/browser/policy/policy_error_map.h" #include "chromeos/dbus/power_policy_controller.h" -#include "grit/generated_resources.h" +#include "grit/component_strings.h" #include "policy/policy_constants.h" namespace policy { diff --git a/chrome/browser/extensions/policy_handlers.cc b/chrome/browser/extensions/policy_handlers.cc index b424866..d0669b2 100644 --- a/chrome/browser/extensions/policy_handlers.cc +++ b/chrome/browser/extensions/policy_handlers.cc @@ -11,7 +11,7 @@ #include "chrome/common/pref_names.h" #include "components/policy/core/common/policy_map.h" #include "extensions/common/extension.h" -#include "grit/generated_resources.h" +#include "grit/component_strings.h" #include "policy/policy_constants.h" namespace extensions { diff --git a/chrome/browser/net/proxy_policy_handler.cc b/chrome/browser/net/proxy_policy_handler.cc index e563665..be01502 100644 --- a/chrome/browser/net/proxy_policy_handler.cc +++ b/chrome/browser/net/proxy_policy_handler.cc @@ -14,7 +14,7 @@ #include "chrome/browser/prefs/proxy_prefs.h" #include "chrome/common/pref_names.h" #include "components/policy/core/common/policy_map.h" -#include "grit/generated_resources.h" +#include "grit/component_strings.h" #include "policy/policy_constants.h" namespace { diff --git a/chrome/browser/policy/cloud/message_util.cc b/chrome/browser/policy/cloud/message_util.cc index 0435b5c..fca7a9f 100644 --- a/chrome/browser/policy/cloud/message_util.cc +++ b/chrome/browser/policy/cloud/message_util.cc @@ -5,7 +5,7 @@ #include "chrome/browser/policy/cloud/message_util.h" #include "base/logging.h" -#include "grit/generated_resources.h" +#include "grit/component_strings.h" #include "ui/base/l10n/l10n_util.h" namespace policy { diff --git a/chrome/browser/policy/configuration_policy_handler.cc b/chrome/browser/policy/configuration_policy_handler.cc index a0b4b66..faab359 100644 --- a/chrome/browser/policy/configuration_policy_handler.cc +++ b/chrome/browser/policy/configuration_policy_handler.cc @@ -18,7 +18,7 @@ #include "chrome/browser/policy/policy_error_map.h" #include "components/policy/core/common/external_data_fetcher.h" #include "components/policy/core/common/policy_map.h" -#include "grit/generated_resources.h" +#include "grit/component_strings.h" #include "url/gurl.h" namespace policy { diff --git a/chrome/browser/policy/configuration_policy_handler_android.cc b/chrome/browser/policy/configuration_policy_handler_android.cc index 4288805..a900e4a 100644 --- a/chrome/browser/policy/configuration_policy_handler_android.cc +++ b/chrome/browser/policy/configuration_policy_handler_android.cc @@ -10,7 +10,7 @@ #include "chrome/common/net/url_fixer_upper.h" #include "chrome/common/pref_names.h" #include "components/policy/core/common/policy_map.h" -#include "grit/generated_resources.h" +#include "grit/component_strings.h" #include "policy/policy_constants.h" #include "url/gurl.h" diff --git a/chrome/browser/policy/configuration_policy_handler_list.cc b/chrome/browser/policy/configuration_policy_handler_list.cc index e1f1bce..41392b5 100644 --- a/chrome/browser/policy/configuration_policy_handler_list.cc +++ b/chrome/browser/policy/configuration_policy_handler_list.cc @@ -28,7 +28,7 @@ #include "components/policy/core/common/policy_map.h" #include "components/policy/core/common/policy_pref_names.h" #include "extensions/common/manifest.h" -#include "grit/generated_resources.h" +#include "grit/component_strings.h" #include "policy/policy_constants.h" #if defined(OS_CHROMEOS) diff --git a/chrome/browser/policy/javascript_policy_handler.cc b/chrome/browser/policy/javascript_policy_handler.cc index 586b23c..69d2900 100644 --- a/chrome/browser/policy/javascript_policy_handler.cc +++ b/chrome/browser/policy/javascript_policy_handler.cc @@ -10,7 +10,7 @@ #include "chrome/common/content_settings.h" #include "chrome/common/pref_names.h" #include "components/policy/core/common/policy_map.h" -#include "grit/generated_resources.h" +#include "grit/component_strings.h" #include "policy/policy_constants.h" namespace policy { diff --git a/chrome/browser/policy/policy_error_map.cc b/chrome/browser/policy/policy_error_map.cc index 9fbcd38..ee49b0e 100644 --- a/chrome/browser/policy/policy_error_map.cc +++ b/chrome/browser/policy/policy_error_map.cc @@ -9,7 +9,7 @@ #include "base/strings/string_number_conversions.h" #include "base/strings/string_util.h" #include "base/strings/utf_string_conversions.h" -#include "grit/generated_resources.h" +#include "grit/component_strings.h" #include "ui/base/l10n/l10n_util.h" #include "ui/base/resource/resource_bundle.h" diff --git a/chrome/browser/policy/url_blacklist_policy_handler.cc b/chrome/browser/policy/url_blacklist_policy_handler.cc index db66f0b..8a775c8 100644 --- a/chrome/browser/policy/url_blacklist_policy_handler.cc +++ b/chrome/browser/policy/url_blacklist_policy_handler.cc @@ -10,7 +10,7 @@ #include "chrome/browser/policy/policy_error_map.h" #include "chrome/common/pref_names.h" #include "components/policy/core/common/policy_map.h" -#include "grit/generated_resources.h" +#include "grit/component_strings.h" #include "policy/policy_constants.h" namespace policy { diff --git a/chrome/browser/profiles/incognito_mode_policy_handler.cc b/chrome/browser/profiles/incognito_mode_policy_handler.cc index be09753..a3006a1 100644 --- a/chrome/browser/profiles/incognito_mode_policy_handler.cc +++ b/chrome/browser/profiles/incognito_mode_policy_handler.cc @@ -12,7 +12,7 @@ #include "chrome/browser/prefs/incognito_mode_prefs.h" #include "chrome/common/pref_names.h" #include "components/policy/core/common/policy_map.h" -#include "grit/generated_resources.h" +#include "grit/component_strings.h" #include "policy/policy_constants.h" namespace policy { diff --git a/chrome/browser/search_engines/default_search_policy_handler.cc b/chrome/browser/search_engines/default_search_policy_handler.cc index 8dd0da8..c0d1e9b 100644 --- a/chrome/browser/search_engines/default_search_policy_handler.cc +++ b/chrome/browser/search_engines/default_search_policy_handler.cc @@ -14,7 +14,7 @@ #include "chrome/common/pref_names.h" #include "components/policy/core/common/policy_map.h" #include "content/public/browser/notification_service.h" -#include "grit/generated_resources.h" +#include "grit/component_strings.h" #include "policy/policy_constants.h" namespace policy { diff --git a/chrome/browser/sessions/restore_on_startup_policy_handler.cc b/chrome/browser/sessions/restore_on_startup_policy_handler.cc index f0d95ae..13eda2d 100644 --- a/chrome/browser/sessions/restore_on_startup_policy_handler.cc +++ b/chrome/browser/sessions/restore_on_startup_policy_handler.cc @@ -11,7 +11,7 @@ #include "chrome/browser/prefs/session_startup_pref.h" #include "chrome/common/pref_names.h" #include "components/policy/core/common/policy_map.h" -#include "grit/generated_resources.h" +#include "grit/component_strings.h" #include "policy/policy_constants.h" namespace policy { diff --git a/chrome/browser/sessions/restore_on_startup_policy_handler_unittest.cc b/chrome/browser/sessions/restore_on_startup_policy_handler_unittest.cc index c8b09e1..cbdc539 100644 --- a/chrome/browser/sessions/restore_on_startup_policy_handler_unittest.cc +++ b/chrome/browser/sessions/restore_on_startup_policy_handler_unittest.cc @@ -16,7 +16,7 @@ #include "chrome/browser/sessions/restore_on_startup_policy_handler.h" #include "chrome/common/pref_names.h" #include "components/policy/core/common/policy_map.h" -#include "grit/generated_resources.h" +#include "grit/component_strings.h" #include "policy/policy_constants.h" #include "testing/gtest/include/gtest/gtest.h" #include "ui/base/l10n/l10n_util.h" diff --git a/chrome/browser/ui/webui/policy_ui.cc b/chrome/browser/ui/webui/policy_ui.cc index 7ba40bc..76d911b 100644 --- a/chrome/browser/ui/webui/policy_ui.cc +++ b/chrome/browser/ui/webui/policy_ui.cc @@ -48,7 +48,7 @@ #include "content/public/browser/web_ui_message_handler.h" #include "google_apis/gaia/gaia_auth_util.h" #include "grit/browser_resources.h" -#include "grit/generated_resources.h" +#include "grit/component_strings.h" #include "policy/policy_constants.h" #include "ui/base/l10n/l10n_util.h" #include "ui/base/l10n/time_format.h" diff --git a/chrome/browser/ui/webui/policy_ui_browsertest.cc b/chrome/browser/ui/webui/policy_ui_browsertest.cc index 4656331..e10eb67 100644 --- a/chrome/browser/ui/webui/policy_ui_browsertest.cc +++ b/chrome/browser/ui/webui/policy_ui_browsertest.cc @@ -20,7 +20,7 @@ #include "components/policy/core/common/schema.h" #include "content/public/browser/web_contents.h" #include "content/public/test/browser_test_utils.h" -#include "grit/generated_resources.h" +#include "grit/component_strings.h" #include "policy/policy_constants.h" #include "testing/gmock/include/gmock/gmock.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/chrome/chrome_browser.gypi b/chrome/chrome_browser.gypi index f904c4f..a6aa493 100644 --- a/chrome/chrome_browser.gypi +++ b/chrome/chrome_browser.gypi @@ -26,6 +26,7 @@ 'probe_message_proto', 'safe_browsing_proto', 'safe_browsing_report_proto', + '../components/component_strings.gyp:component_strings', '../components/components.gyp:browser_context_keyed_service', '../components/components.gyp:encryptor', '../components/components.gyp:navigation_metrics', diff --git a/chrome/chrome_browser_chromeos.gypi b/chrome/chrome_browser_chromeos.gypi index 7da88b0..3e82772 100644 --- a/chrome/chrome_browser_chromeos.gypi +++ b/chrome/chrome_browser_chromeos.gypi @@ -56,6 +56,7 @@ # transitively via the common target because the proto sources need to # be generated before code in this target can start building. '../components/components.gyp:variations', + '../components/component_strings.gyp:component_strings', '../content/content.gyp:content_browser', '../content/content.gyp:content_common', '../crypto/crypto.gyp:crypto', diff --git a/chrome/chrome_browser_extensions.gypi b/chrome/chrome_browser_extensions.gypi index 103b633..de36926 100644 --- a/chrome/chrome_browser_extensions.gypi +++ b/chrome/chrome_browser_extensions.gypi @@ -27,6 +27,7 @@ 'in_memory_url_index_cache_proto', 'installer_util', 'sync_file_system_proto', + '../components/component_strings.gyp:component_strings', '../components/components.gyp:onc_component', '../components/components.gyp:wifi_component', '../content/content.gyp:content_browser', diff --git a/chrome/chrome_tests.gypi b/chrome/chrome_tests.gypi index 10f6851..7cb6ad7 100644 --- a/chrome/chrome_tests.gypi +++ b/chrome/chrome_tests.gypi @@ -898,6 +898,7 @@ '../base/base.gyp:test_support_base', '../components/components.gyp:autofill_content_risk_proto', '../components/components.gyp:autofill_content_test_support', + '../components/component_strings.gyp:component_strings', '../device/bluetooth/bluetooth.gyp:device_bluetooth_mocks', '../google_apis/google_apis.gyp:google_apis_test_support', '../net/net.gyp:net', diff --git a/components/OWNERS b/components/OWNERS index 63c9c4d..a18f33f 100644 --- a/components/OWNERS +++ b/components/OWNERS @@ -38,13 +38,13 @@ per-file onc.gypi=stevenjb@chromium.org per-file precache*=bengr@chromium.org per-file precache*=sclittle@chromium.org -per-file policy.gypi=mnissler@chromium.org -per-file policy.gypi=pastarmovj@chromium.org -per-file policy.gypi=joaodasilva@chromium.org -per-file policy.gypi=bartfab@chromium.org -per-file policy.gypi=atwilson@chromium.org -per-file policy.gypi=pneubeck@chromium.org -per-file policy.gypi=dconnelly@chromium.org +per-file policy*=mnissler@chromium.org +per-file policy*=pastarmovj@chromium.org +per-file policy*=joaodasilva@chromium.org +per-file policy*=bartfab@chromium.org +per-file policy*=atwilson@chromium.org +per-file policy*=pneubeck@chromium.org +per-file policy*=dconnelly@chromium.org per-file sessions.gypi=marja@chromium.org per-file sessions.gypi=sky@chromium.org diff --git a/components/component_strings.grd b/components/component_strings.grd index 28e2a46..4feabeb 100644 --- a/components/component_strings.grd +++ b/components/component_strings.grd @@ -169,6 +169,7 @@ <messages fallback_to_english="true"> <part file="autofill_strings.grdp" /> <part file="dom_distiller_strings.grdp" /> + <part file="policy_strings.grdp" /> </messages> </release> </grit> diff --git a/components/policy.gypi b/components/policy.gypi index a08ba9e..4580dea 100644 --- a/components/policy.gypi +++ b/components/policy.gypi @@ -10,6 +10,7 @@ 'dependencies': [ '../base/base.gyp:base', 'json_schema', + 'component_strings.gyp:component_strings', ], 'defines': [ 'POLICY_COMPONENT_IMPLEMENTATION', diff --git a/components/policy_strings.grdp b/components/policy_strings.grdp new file mode 100644 index 0000000..cd4417f --- /dev/null +++ b/components/policy_strings.grdp @@ -0,0 +1,290 @@ +<?xml version="1.0" encoding="utf-8"?> +<grit-part> + + <message name="IDS_POLICY_DM_STATUS_SUCCESS" desc="Message indicating a successful device management server call."> + Request succeeded + </message> + <message name="IDS_POLICY_DM_STATUS_REQUEST_INVALID" desc="Message indicating a bad request to the enterprise server."> + Invalid request or request parameters + </message> + <message name="IDS_POLICY_DM_STATUS_REQUEST_FAILED" desc="Message indicating the request to the enterprise server failed in the network."> + Network error + </message> + <message name="IDS_POLICY_DM_STATUS_TEMPORARY_UNAVAILABLE" desc="Message indicating a temporary problem on the enterprise server."> + Temporary server error + </message> + <message name="IDS_POLICY_DM_STATUS_HTTP_STATUS_ERROR" desc="Message indicating an abnormal response code from the enterprise server."> + HTTP error + </message> + <message name="IDS_POLICY_DM_STATUS_RESPONSE_DECODING_ERROR" desc="Message indicating a problem decoding a response from the enterprise server."> + Failed to decode response + </message> + <message name="IDS_POLICY_DM_STATUS_SERVICE_MANAGEMENT_NOT_SUPPORTED" desc="Message indicating that enterprise management is not applicable to the user/device."> + Management not supported + </message> + <message name="IDS_POLICY_DM_STATUS_SERVICE_DEVICE_NOT_FOUND" desc="Message indicating the enterprise server is missing a device record."> + Missing device record + </message> + <message name="IDS_POLICY_DM_STATUS_SERVICE_MANAGEMENT_TOKEN_INVALID" desc="Message indicating the token used to authenticate to the enterprise server is invalid."> + Invalid device management token + </message> + <message name="IDS_POLICY_DM_STATUS_SERVICE_ACTIVATION_PENDING" desc="Message indicating enterprise management must first be activated for this user/device."> + Activation is pending on the server + </message> + <message name="IDS_POLICY_DM_STATUS_SERVICE_INVALID_SERIAL_NUMBER" desc="Message indicating the provided device serial number is invalid."> + Device serial number is invalid + </message> + <message name="IDS_POLICY_DM_STATUS_SERVICE_DEVICE_ID_CONFLICT" desc="Message indicating the chosen device identifier is already used."> + Conflicting device identifier + </message> + <message name="IDS_POLICY_DM_STATUS_SERVICE_MISSING_LICENSES" desc="Message indicating the enterprise server doesn't have enough licenses to allow management."> + Licenses exhausted + </message> + <message name="IDS_POLICY_DM_STATUS_SERVICE_POLICY_NOT_FOUND" desc="Message indicating that the enterprise server failed to find the policy to be applied to the device."> + Policy not found + </message> + <message name="IDS_POLICY_DM_STATUS_UNKNOWN_ERROR" desc="Message indicating an unknown error from the enterprise server."> + Unknown error + </message> + + <message name="IDS_POLICY_VALIDATION_OK" desc="Message indicating successful policy validation."> + Validation successful + </message> + <message name="IDS_POLICY_VALIDATION_BAD_INITIAL_SIGNATURE" desc="Message indicating a bad signature on policy validation using the initial key."> + Bad intial signature + </message> + <message name="IDS_POLICY_VALIDATION_BAD_SIGNATURE" desc="Message indicating a bad signature on policy validation."> + Bad signature + </message> + <message name="IDS_POLICY_VALIDATION_ERROR_CODE_PRESENT" desc="Message indicating policy validation failure due to an error code in the policy."> + Error code present in the policy response + </message> + <message name="IDS_POLICY_VALIDATION_PAYLOAD_PARSE_ERROR" desc="Message indicating a policy parse error during policy validation."> + Error parsing policy + </message> + <message name="IDS_POLICY_VALIDATION_WRONG_POLICY_TYPE" desc="Message indicating the policy did not have the expected type."> + Wrong policy type + </message> + <message name="IDS_POLICY_VALIDATION_WRONG_SETTINGS_ENTITY_ID" desc="Message indicating the policy did not have the expected entity identifier."> + Wrong entity identifier + </message> + <message name="IDS_POLICY_VALIDATION_BAD_TIMESTAMP" desc="Message indicating the policy timestamp is bad."> + Bad policy timestamp + </message> + <message name="IDS_POLICY_VALIDATION_WRONG_TOKEN" desc="Message indicating the policy token is different from the one expected."> + Returned policy token doesn't match current token + </message> + <message name="IDS_POLICY_VALIDATION_BAD_USERNAME" desc="Message indicating policy validation failed due to bad username/domain."> + Wrong policy subject + </message> + <message name="IDS_POLICY_VALIDATION_POLICY_PARSE_ERROR" desc="Message indicating a parse error in policy."> + Error parsing policy settings + </message> + <message name="IDS_POLICY_VALIDATION_UNKNOWN_ERROR" desc="Message indicating unknown error in policy validation."> + Unknown error + </message> + + <message name="IDS_POLICY_STORE_STATUS_OK" desc="Message indicating a healthy policy store."> + Policy cache OK + </message> + <message name="IDS_POLICY_STORE_STATUS_LOAD_ERROR" desc="Message indicating a failure to load policy."> + Failed to load policy settings + </message> + <message name="IDS_POLICY_STORE_STATUS_STORE_ERROR" desc="Message indicating a failure to store policy."> + Failed to store policy settings + </message> + <message name="IDS_POLICY_STORE_STATUS_PARSE_ERROR" desc="Message indicating a parse error on loading policy"> + Policy parse error + </message> + <message name="IDS_POLICY_STORE_STATUS_SERIALIZE_ERROR" desc="Message indicating an error preparing policy for storage."> + Serialization error + </message> + <message name="IDS_POLICY_STORE_STATUS_VALIDATION_ERROR" desc="Message indicating policy validation on store/load failed."> + Validation error: <ph name="VALIDATION_ERROR">$1<ex>Bad signature</ex></ph>. + </message> + <message name="IDS_POLICY_STORE_STATUS_BAD_STATE" desc="Message indicating policy cannot be stored/loaded due to the backend being in bad state."> + Backing store in bad state + </message> + <message name="IDS_POLICY_STORE_STATUS_UNKNOWN_ERROR" desc="Message indicating an unknown error with the policy cache."> + Unknown error + </message> + + <message name="IDS_POLICY_TYPE_ERROR" desc="The text displayed in the status column when a policy value has the wrong type."> + Expected <ph name="VALUE_TYPE">$1<ex>boolean</ex></ph> value. + </message> + <message name="IDS_POLICY_OUT_OF_RANGE_ERROR" desc="The text displayed in the status column when a policy value is out of range."> + Value is out of range <ph name="VALUE">$1<ex>10</ex></ph>. + </message> + <message name="IDS_POLICY_VALUE_FORMAT_ERROR" desc="The text displayed in the status column when a policy value doesn't match the expected format."> + Value doesn't match format. + </message> + <message name="IDS_POLICY_DEFAULT_SEARCH_DISABLED" desc="The text displayed in the status column when a policy value has been ignored because default search has been disabled."> + Ignored because default search is disabled by policy. + </message> + <message name="IDS_POLICY_NOT_SPECIFIED_ERROR" desc="The text displayed in the status column when a policy value should have been specified but wasn't."> + Must be specified. + </message> + <message name="IDS_POLICY_SUBKEY_ERROR" desc="The text displayed in the status column for errors in a subkey of a policy."> + Key "<ph name="SUBKEY">$1<ex>ProxyMode</ex></ph>": <ph name="ERROR">$2<ex>Must be specified.</ex></ph> + </message> + <message name="IDS_POLICY_LIST_ENTRY_ERROR" desc="The text displayed in the status column for errors in list entry in a policy."> + List entry "<ph name="ENTRY_INDEX">$1<ex>3</ex></ph>": <ph name="ERROR">$2<ex>Value is out of range.</ex></ph> + </message> + <message name="IDS_POLICY_INVALID_SEARCH_URL_ERROR" desc="The text displayed in the status column when a the URL given for DefaultSearchProviderSearchURL is invalid."> + Invalid search URL. + </message> + <message name="IDS_POLICY_INVALID_PROXY_MODE_ERROR" desc="The text displayed in the status column when the value for ProxyMode is invalid."> + Invalid proxy mode. + </message> + <message name="IDS_POLICY_PROXY_MODE_DISABLED_ERROR" desc="The text displayed in the status column when use of a proxy is disabled but a proxy configuration is given."> + Use of a proxy is disabled but an explicit proxy configuration is specified. + </message> + <message name="IDS_POLICY_PROXY_MODE_AUTO_DETECT_ERROR" desc="The text displayed in the status column when the proxy is set to auto configured but a proxy configuration is given."> + Proxy is set to auto configured. + </message> + <message name="IDS_POLICY_PROXY_MODE_PAC_URL_ERROR" desc="The text displayed in the status column when the proxy configuration is set to use a .pac script URL but policies only for fixed proxy servers are also specified."> + Proxy configuration is set to use a .pac script URL, not fixed proxy servers. + </message> + <message name="IDS_POLICY_PROXY_MODE_FIXED_SERVERS_ERROR" desc="The text displayed in the status column when the proxy configuration is set to use fixed proxy servers but an alternate configuration is given."> + Proxy is set to use fixed proxy servers, not a .pac script URL. + </message> + <message name="IDS_POLICY_PROXY_MODE_SYSTEM_ERROR" desc="The text displayed in the status column when the proxy configuration is set to use system settings but an alternate configuration is given."> + System proxy settings are set to be used but an explicit proxy configuration is also specified. + </message> + <message name="IDS_POLICY_PROXY_BOTH_SPECIFIED_ERROR" desc="The text displayed in the status column when both fixed proxy servers and .pac url are specified."> + Both fixed proxy servers and a .pac script URL are specified. + </message> + <message name="IDS_POLICY_PROXY_NEITHER_SPECIFIED_ERROR" desc="The text displayed in the status column when neither a fixed proxy servers or a .pac url are specified."> + Neither fixed proxy servers nor a .pac script URL are specified. + </message> + <message name="IDS_POLICY_OVERRIDDEN" desc="The text displayed in the status column when the corresponding policy is being ignored because another policy is overriding it."> + Ignored because it was overridden by <ph name="POLICY_NAME">$1<ex>ProxyMode</ex></ph>. + </message> + <message name="IDS_POLICY_DEPRECATED" desc="The text displayed in the status column when the corresponding policy is deprecated."> + This policy has been deprecated. + </message> + <message name="IDS_POLICY_VALUE_DEPRECATED" desc="The text displayed in the status column when a specific value for a policy is deprecated."> + This value is deprecated for this policy. + </message> + <message name="IDS_POLICY_NETWORK_CONFIG_PARSE_FAILED" desc="The text displayed in the status column when the corresponding network configuration policy failed to parse."> + Network configuration failed to be parsed. + </message> + <message name="IDS_POLICY_NETWORK_CONFIG_IMPORT_PARTIAL" desc="The text displayed in the status column when the corresponding network configuration policy is not standard conform and was imported partially."> + The network configuration doesn't comply to the ONC standard. Parts of the configuration may not be imported. + </message> + <message name="IDS_POLICY_NETWORK_CONFIG_IMPORT_FAILED" desc="The text displayed in the status column when the corresponding network configuration policy is invalid."> + The network configuration is invalid and couldn't be imported. + </message> + <message name="IDS_POLICY_JSON_PARSE_ERROR" desc="The text displayed in the status column when a policy that should have been specified in JSON format could not be parsed."> + Failed to parse JSON format: <ph name="JSON_PARSE_ERROR">$1<ex>Unexpected token.</ex></ph> + </message> + <message name="IDS_POLICY_OK" desc="Text displayed in the status column when a valid value is set for a policy."> + OK + </message> + <message name="IDS_POLICY_UNSET" desc="Text displayed in the status column when no value is set for a policy."> + Not set. + </message> + <message name="IDS_POLICY_UNKNOWN" desc="Text displayed in the status column when a policy name is not recognized."> + Unknown policy. + </message> + <message name="IDS_POLICY_INVALID_BOOKMARK" desc="Text displayed in the status column when an entry of the ManagedBookmarks policy is not a valid bookmark."> + Ignored invalid bookmark at index <ph name="ENTRY_INDEX">$1<ex>3</ex></ph> + </message> + + <!-- chrome://policy --> + <message name="IDS_POLICY_TITLE" desc="Page title and the title of the section that lists policies."> + Policies + </message> + <message name="IDS_POLICY_FILTER_PLACEHOLDER" desc="Placeholder for the input field that lets the user filter policies by name."> + Filter policies by name + </message> + <message name="IDS_POLICY_RELOAD_POLICIES" desc="Label for the button that reloads policies."> + Reload policies + </message> + <message name="IDS_POLICY_STATUS" desc="Title of the status section."> + Status + </message> + <message name="IDS_POLICY_STATUS_DEVICE" desc="Title for the device policy status box."> + Device policies + </message> + <message name="IDS_POLICY_STATUS_USER" desc="Title for the user policy status box."> + User policies + </message> + <message name="IDS_POLICY_LABEL_DOMAIN" desc="Label for the enrollment domain in the device policy status box."> + Enrollment domain: + </message> + <message name="IDS_POLICY_LABEL_USERNAME" desc="Label for the username in the user policy status box."> + User: + </message> + <message name="IDS_POLICY_LABEL_CLIENT_ID" desc="Label for the client IDs in the policy status boxes."> + Client ID: + </message> + <message name="IDS_POLICY_LABEL_TIME_SINCE_LAST_REFRESH" desc="Label for the time since the last refresh in the policy status boxes."> + Last fetched: + </message> + <message name="IDS_POLICY_NEVER_FETCHED" desc="Indicates that a policy fetch was never performed before."> + Never + </message> + <message name="IDS_POLICY_LABEL_REFRESH_INTERVAL" desc="Label for the refresh interval in the policy status boxes."> + Fetch interval: + </message> + <message name="IDS_POLICY_LABEL_STATUS" desc="Label for the actual status in the policy status boxes."> + Status: + </message> + <message name="IDS_POLICY_SHOW_UNSET" desc="Label for the checkbox that determines whether policies whose value has not been set are shown."> + Show policies with no value set + </message> + <message name="IDS_POLICY_NO_POLICIES_SET" desc="Text displayed when none of the policies have been set."> + No policies set + </message> + <message name="IDS_POLICY_HEADER_SCOPE" desc="Table header for the column in the policy table that details whether a policy is a user or a device policy."> + Applies to + </message> + <message name="IDS_POLICY_HEADER_LEVEL" desc="Table header for the column in the policy table that details whether a policy is mandatory or recommended."> + Level + </message> + <message name="IDS_POLICY_HEADER_NAME" desc="Table header for the column in the policy table that contains the policy name."> + Policy name + </message> + <message name="IDS_POLICY_HEADER_VALUE" desc="Table header for the column in the policy table that contains the policy value."> + Policy value + </message> + <message name="IDS_POLICY_HEADER_STATUS" desc="Table header for the column in policy table that contains the policy status."> + Status + </message> + <message name="IDS_POLICY_SHOW_EXPANDED_VALUE" desc="Text for the link that shows the policy value. Used when the policy value is too long to be always visible."> + Show value + </message> + <message name="IDS_POLICY_HIDE_EXPANDED_VALUE" desc="Text for the link that hides the policy value. Used when the policy value is too long to be always visible."> + Hide value + </message> + <message name="IDS_POLICY_SCOPE_USER" desc="Text displayed in the Applies to column when a policy applies to the current user only."> + Current user + </message> + <if expr="not is_android and not pp_ifdef('chromeos')"> + <message name="IDS_POLICY_SCOPE_DEVICE" desc="Text displayed in the Applies to column when a policy applies to everyone on the machine."> + Machine + </message> + </if> + <if expr="pp_ifdef('chromeos') or is_android"> + <message name="IDS_POLICY_SCOPE_DEVICE" desc="Mobile: Text displayed in the Applies To column when a policy applies to everyone on the device."> + Device + </message> + </if> + <message name="IDS_POLICY_LEVEL_RECOMMENDED" desc="Text displayed in the Level column when a policy is recommended."> + Recommended + </message> + <message name="IDS_POLICY_LEVEL_MANDATORY" desc="Text displayed in the Level column when a policy is mandatory."> + Mandatory + </message> + + <if expr="is_android"> + <message name="IDS_POLICY_MANAGED_BOOKMARKS" desc="Mobile: name of the managed bookmarks folder"> + <ph name="DOMAIN">$1<ex>google.com</ex></ph> bookmarks + </message> + <message name="IDS_POLICY_MANAGED_BOOKMARKS_DEFAULT_NAME" desc="Mobile: name of the managed bookmarks folder when the management domain can't be determined."> + Managed bookmarks + </message> + </if> + +</grit-part> |