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

Unified Diff: third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp

Issue 2017053003: Remove StringBuilder::appendLiteral. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase. Created 4 years, 7 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: third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp b/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp
index 201a6fc382fac2e2869d61b32e5eaf79b6a3c929..4b3b949fbb0a88f6e9253b5054b42b2980f3b38a 100644
--- a/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp
+++ b/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp
@@ -43,20 +43,20 @@ namespace blink {
String XSSInfo::buildConsoleError() const
{
StringBuilder message;
- message.appendLiteral("The XSS Auditor ");
+ message.append("The XSS Auditor ");
message.append(m_didBlockEntirePage ? "blocked access to" : "refused to execute a script in");
- message.appendLiteral(" '");
+ message.append(" '");
message.append(m_originalURL);
- message.appendLiteral("' because ");
+ message.append("' because ");
message.append(m_didBlockEntirePage ? "the source code of a script" : "its source code");
- message.appendLiteral(" was found within the request.");
+ message.append(" was found within the request.");
if (m_didSendCSPHeader)
- message.appendLiteral(" The server sent a 'Content-Security-Policy' header requesting this behavior.");
+ message.append(" The server sent a 'Content-Security-Policy' header requesting this behavior.");
else if (m_didSendXSSProtectionHeader)
- message.appendLiteral(" The server sent an 'X-XSS-Protection' header requesting this behavior.");
+ message.append(" The server sent an 'X-XSS-Protection' header requesting this behavior.");
else
- message.appendLiteral(" The auditor was enabled as the server sent neither an 'X-XSS-Protection' nor 'Content-Security-Policy' header.");
+ message.append(" The auditor was enabled as the server sent neither an 'X-XSS-Protection' nor 'Content-Security-Policy' header.");
return message.toString();
}

Powered by Google App Engine
This is Rietveld 408576698