summaryrefslogtreecommitdiffstats
path: root/chrome/browser/policy
diff options
context:
space:
mode:
authormnissler@chromium.org <mnissler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-15 11:27:01 +0000
committermnissler@chromium.org <mnissler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-15 11:27:01 +0000
commit5785ee46bc467cf45e4e725c8b141d4f104b7d6b (patch)
tree78144a6e35a1be48fc3c2a60d060fcf6f54fa426 /chrome/browser/policy
parent66501afa72934631a32cd0cdd0a5ab5bb43b4d7a (diff)
downloadchromium_src-5785ee46bc467cf45e4e725c8b141d4f104b7d6b.zip
chromium_src-5785ee46bc467cf45e4e725c8b141d4f104b7d6b.tar.gz
chromium_src-5785ee46bc467cf45e4e725c8b141d4f104b7d6b.tar.bz2
Fix display and progressive disclosure for multi-line values in about:policy.
Previously, all lines were joined together into a single hard-to-read block. Change expanded state to make white-space significant so multi-line error messages are on separate lines and network configuration renders nicely. BUG=chromium:104138 TEST=Put network configuration policy in place and check about:policy. Review URL: http://codereview.chromium.org/8555009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110070 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/policy')
-rw-r--r--chrome/browser/policy/policy_error_map.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/policy/policy_error_map.cc b/chrome/browser/policy/policy_error_map.cc
index 956392a..daf167a 100644
--- a/chrome/browser/policy/policy_error_map.cc
+++ b/chrome/browser/policy/policy_error_map.cc
@@ -57,7 +57,7 @@ string16 PolicyErrorMap::GetErrors(ConfigurationPolicyType policy) {
std::vector<string16> list;
for (const_iterator it = range.first; it != range.second; ++it)
list.push_back(it->second);
- return JoinString(list, ' ');
+ return JoinString(list, '\n');
}
bool PolicyErrorMap::empty() {