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

Unified Diff: chrome/common/security_filter_peer.cc

Issue 348060: Add 'meta charset=UTF-8' to the html of an iframe interstitial to prevent no... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/security_filter_peer.cc
===================================================================
--- chrome/common/security_filter_peer.cc (revision 30825)
+++ chrome/common/security_filter_peer.cc (working copy)
@@ -92,11 +92,11 @@
webkit_glue::ResourceLoaderBridge::Peer* peer, int os_error) {
// TODO(jcampan): use a different message when getting a phishing/malware
// error.
- std::wstring error_msg = l10n_util::GetString(IDS_UNSAFE_FRAME_MESSAGE);
std::string html = StringPrintf(
- "<html><body style='background-color:#990000;color:white;'>"
+ "<html><meta charset='UTF-8'>"
+ "<body style='background-color:#990000;color:white;'>"
"%s</body></html>",
- WideToUTF8(error_msg).c_str());
+ l10n_util::GetStringUTF8(IDS_UNSAFE_FRAME_MESSAGE).c_str());
return new ReplaceContentPeer(NULL, peer, "text/html", html);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698