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

Unified Diff: third_party/WebKit/Source/platform/blob/BlobData.cpp

Issue 2147633002: Remove nonstandard 'endings' option for Blob/File constructor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Layout test updates Created 4 years, 5 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/blob/BlobData.cpp
diff --git a/third_party/WebKit/Source/platform/blob/BlobData.cpp b/third_party/WebKit/Source/platform/blob/BlobData.cpp
index 4a82ea4be58c60da118e51294184f1a69698273d..fa93ebe90727ab454ad53bf2564e6b7adba1a38f 100644
--- a/third_party/WebKit/Source/platform/blob/BlobData.cpp
+++ b/third_party/WebKit/Source/platform/blob/BlobData.cpp
@@ -124,7 +124,7 @@ void BlobData::appendFileSystemURL(const KURL& url, long long offset, long long
m_items.append(BlobDataItem(url, offset, length, expectedModificationTime));
}
-void BlobData::appendText(const String& text, bool doNormalizeLineEndingsToNative)
+void BlobData::appendText(const String& text)
{
CString utf8Text = UTF8Encoding().encode(text, WTF::EntitiesForUnencodables);
RefPtr<RawData> data = nullptr;
@@ -136,11 +136,7 @@ void BlobData::appendText(const String& text, bool doNormalizeLineEndingsToNativ
buffer = data->mutableData();
}
- if (doNormalizeLineEndingsToNative) {
- normalizeLineEndingsToNative(utf8Text, *buffer);
- } else {
- buffer->append(utf8Text.data(), utf8Text.length());
- }
+ buffer->append(utf8Text.data(), utf8Text.length());
if (data)
m_items.append(BlobDataItem(data.release()));

Powered by Google App Engine
This is Rietveld 408576698