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 8aba4198698afbc9615466cd24be08a7029190ef..f7f616f0680133f1d995d8217e2ae871e3af2377 100644 |
--- a/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp |
+++ b/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp |
@@ -51,26 +51,6 @@ const char* const quotedPrintable = "quoted-printable"; |
const char* const base64 = "base64"; |
const char* const binary = "binary"; |
-String MHTMLArchive::generateMHTMLBoundary() |
-{ |
- // Trying to generate random boundaries similar to IE/UnMHT |
- // (ex: ----=_NextPart_000_001B_01CC157B.96F808A0). |
- const size_t randomValuesLength = 10; |
- char randomValues[randomValuesLength]; |
- cryptographicallyRandomValues(&randomValues, randomValuesLength); |
- StringBuilder stringBuilder; |
- stringBuilder.appendLiteral("----=_NextPart_000_"); |
- for (size_t i = 0; i < randomValuesLength; ++i) { |
- if (i == 2) |
- stringBuilder.append('_'); |
- else if (i == 6) |
- stringBuilder.append('.'); |
- stringBuilder.append(lowerNibbleToASCIIHexDigit(randomValues[i])); |
- stringBuilder.append(upperNibbleToASCIIHexDigit(randomValues[i])); |
- } |
- return stringBuilder.toString(); |
-} |
- |
static String replaceNonPrintableCharacters(const String& text) |
{ |
StringBuilder stringBuilder; |