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

Unified Diff: third_party/WebKit/Source/core/fileapi/File.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/core/fileapi/File.cpp
diff --git a/third_party/WebKit/Source/core/fileapi/File.cpp b/third_party/WebKit/Source/core/fileapi/File.cpp
index e8f41f963ae10484bda679b72f8ed1d8933657eb..8e5658d823660b374006ab921e5625cd98258eec 100644
--- a/third_party/WebKit/Source/core/fileapi/File.cpp
+++ b/third_party/WebKit/Source/core/fileapi/File.cpp
@@ -103,14 +103,10 @@ File* File::create(ExecutionContext* context, const HeapVector<ArrayBufferOrArra
lastModified = static_cast<double>(options.lastModified());
else
lastModified = currentTimeMS();
- ASSERT(options.hasEndings());
- bool normalizeLineEndingsToNative = options.endings() == "native";
- if (normalizeLineEndingsToNative)
- UseCounter::count(context, UseCounter::FileAPINativeLineEndings);
std::unique_ptr<BlobData> blobData = BlobData::create();
blobData->setContentType(options.type().lower());
- populateBlobData(blobData.get(), fileBits, normalizeLineEndingsToNative);
+ populateBlobData(blobData.get(), fileBits);
long long fileSize = blobData->length();
return File::create(fileName, lastModified, BlobDataHandle::create(std::move(blobData), fileSize));

Powered by Google App Engine
This is Rietveld 408576698