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

Unified Diff: third_party/WebKit/Source/core/html/forms/FileInputType.cpp

Issue 2735633004: HTML Media Capture: update capture attribute to use string. (Closed)
Patch Set: Fix comments Created 3 years, 8 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/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..64cf268b110689c6a03683e3dcb1b89b35f7fae8 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.capture();
chrome_client->OpenFileChooser(input.GetDocument().GetFrame(),
NewFileChooser(settings));
}

Powered by Google App Engine
This is Rietveld 408576698