Index: third_party/WebKit/Source/core/page/DragController.cpp |
diff --git a/third_party/WebKit/Source/core/page/DragController.cpp b/third_party/WebKit/Source/core/page/DragController.cpp |
index aaaa83f6960b2fdf436e6cdf8e47147aaa787e8f..7f9acf84321cb55dbd74b25fddcfda1ac52d7623 100644 |
--- a/third_party/WebKit/Source/core/page/DragController.cpp |
+++ b/third_party/WebKit/Source/core/page/DragController.cpp |
@@ -389,9 +389,7 @@ bool DragController::tryDocumentDrag(DragData* dragData, DragDestinationAction a |
dragSession.mouseIsOverFileInput = m_fileInputElementUnderMouse; |
dragSession.numberOfItemsToBeAccepted = 0; |
- Vector<String> paths; |
- dragData->asFilePaths(paths); |
- const unsigned numberOfFiles = paths.size(); |
+ const unsigned numberOfFiles = dragData->numberOfFiles(); |
if (m_fileInputElementUnderMouse) { |
if (m_fileInputElementUnderMouse->isDisabledFormControl()) |
dragSession.numberOfItemsToBeAccepted = 0; |