Index: Source/core/html/forms/FileInputType.cpp |
diff --git a/Source/core/html/forms/FileInputType.cpp b/Source/core/html/forms/FileInputType.cpp |
index d00f8dbca9fded44a93f94d7d79745451a94aa34..159017c2188c639af2e256f13426373919ecb25b 100644 |
--- a/Source/core/html/forms/FileInputType.cpp |
+++ b/Source/core/html/forms/FileInputType.cpp |
@@ -157,9 +157,7 @@ void FileInputType::handleDOMActivateEvent(Event* event) |
settings.acceptMIMETypes = input.acceptMIMETypes(); |
settings.acceptFileExtensions = input.acceptFileExtensions(); |
settings.selectedFiles = m_fileList->paths(); |
-#if ENABLE(MEDIA_CAPTURE) |
- settings.useMediaCapture = input.isFileUpload() && input.fastHasAttribute(captureAttr); |
-#endif |
+ settings.useMediaCapture = RuntimeEnabledFeatures::mediaCaptureEnabled() && input.isFileUpload() && input.fastHasAttribute(captureAttr); |
chrome->runOpenPanel(input.document().frame(), newFileChooser(settings)); |
} |
event->setDefaultHandled(); |