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

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

Issue 2025503002: Revert of Expand WTF::StringView's API to be more like StringPiece. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 a4f4b997fd5e27be932abc49ec012d045112143f..13ae63b0bd9b8cd44e4fbb9f7322ddd87980ede7 100644
--- a/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp
+++ b/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp
@@ -139,9 +139,7 @@
ASSERT(contentID.isEmpty() || contentID[0] == '<');
StringBuilder stringBuilder;
- stringBuilder.append("--");
- stringBuilder.append(boundary);
- stringBuilder.append("\r\n");
+ stringBuilder.append("--" + boundary + "\r\n");
stringBuilder.appendLiteral("Content-Type: ");
stringBuilder.append(resource.mimeType);
@@ -167,7 +165,7 @@
if (!resource.url.protocolIsAbout()) {
stringBuilder.appendLiteral("Content-Location: ");
- stringBuilder.append(resource.url.getString());
+ stringBuilder.append(resource.url);
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