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

Unified Diff: chrome/browser/resources/settings/about_page/about_page.js

Issue 2221563002: MD Settings: About page, allow error messages to contain HTML. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix. Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/about_page/about_page.js
diff --git a/chrome/browser/resources/settings/about_page/about_page.js b/chrome/browser/resources/settings/about_page/about_page.js
index 07d8eaa857006e28409964ad66182ee06d85ae13..a21bee907171a417d33ec8ab33335bfa88fa1e02 100644
--- a/chrome/browser/resources/settings/about_page/about_page.js
+++ b/chrome/browser/resources/settings/about_page/about_page.js
@@ -176,7 +176,10 @@ Polymer({
</if>
return this.i18n('aboutUpgradeUpdating');
default:
- return this.currentUpdateStatusEvent_.message || '';
+ var message = this.currentUpdateStatusEvent_.message;
+ return message ?
+ parseHtmlSubset('<b>' + message + '</b>').firstChild.innerHTML :
+ '';
}
},

Powered by Google App Engine
This is Rietveld 408576698