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

Unified Diff: third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp

Issue 2007103003: Expand WTF::StringView's API to be more like StringPiece. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove bad assert. 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/platform/mhtml/MHTMLArchive.cpp
diff --git a/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp b/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp
index 13ae63b0bd9b8cd44e4fbb9f7322ddd87980ede7..a4f4b997fd5e27be932abc49ec012d045112143f 100644
--- a/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp
+++ b/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp
@@ -139,7 +139,9 @@ void MHTMLArchive::generateMHTMLPart(
ASSERT(contentID.isEmpty() || contentID[0] == '<');
StringBuilder stringBuilder;
- stringBuilder.append("--" + boundary + "\r\n");
+ stringBuilder.append("--");
+ stringBuilder.append(boundary);
+ stringBuilder.append("\r\n");
stringBuilder.appendLiteral("Content-Type: ");
stringBuilder.append(resource.mimeType);
@@ -165,7 +167,7 @@ void MHTMLArchive::generateMHTMLPart(
if (!resource.url.protocolIsAbout()) {
stringBuilder.appendLiteral("Content-Location: ");
- stringBuilder.append(resource.url);
+ stringBuilder.append(resource.url.getString());
stringBuilder.appendLiteral("\r\n");
}
« no previous file with comments | « third_party/WebKit/Source/platform/inspector_protocol/String16WTF.h ('k') | third_party/WebKit/Source/platform/text/TextRun.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698