Index: third_party/WebKit/Source/core/html/forms/FileInputType.cpp |
diff --git a/third_party/WebKit/Source/core/html/forms/FileInputType.cpp b/third_party/WebKit/Source/core/html/forms/FileInputType.cpp |
index 846a1167e827ad0f3411a3b9a8bcaed0d30edf02..44b85c81336b6cb5f38afa9735be726bc6f80bda 100644 |
--- a/third_party/WebKit/Source/core/html/forms/FileInputType.cpp |
+++ b/third_party/WebKit/Source/core/html/forms/FileInputType.cpp |
@@ -145,9 +145,8 @@ void FileInputType::HandleDOMActivateEvent(Event* event) { |
settings.accept_mime_types = input.AcceptMIMETypes(); |
settings.accept_file_extensions = input.AcceptFileExtensions(); |
settings.selected_files = file_list_->PathsForUserVisibleFiles(); |
- settings.use_media_capture = |
- RuntimeEnabledFeatures::mediaCaptureEnabled() && |
- input.FastHasAttribute(captureAttr); |
+ if (RuntimeEnabledFeatures::mediaCaptureEnabled()) |
+ settings.capture = input.GetCapture(); |
chrome_client->OpenFileChooser(input.GetDocument().GetFrame(), |
NewFileChooser(settings)); |
} |