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

Unified Diff: third_party/WebKit/Source/core/clipboard/DataTransfer.cpp

Issue 1776133003: Have DataObject create less copies of mime type lists. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: iwyu Created 4 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/core/clipboard/DataObject.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
diff --git a/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp b/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
index e070597ef46c0f327e56fdd9ba30fd8d2599a628..995b8928c55ddb3e51d549369e5a8f461ba2312f 100644
--- a/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
+++ b/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
@@ -189,9 +189,7 @@ Vector<String> DataTransfer::types() const
if (!canReadTypes())
return types;
- ListHashSet<String> typesSet = m_dataObject->types();
- types.appendRange(typesSet.begin(), typesSet.end());
- return types;
+ return m_dataObject->types();
}
FileList* DataTransfer::files() const
« no previous file with comments | « third_party/WebKit/Source/core/clipboard/DataObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698