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

Unified Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

Issue 2735633004: HTML Media Capture: update capture attribute to use string. (Closed)
Patch Set: Fix for android webview 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/web/ChromeClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/ChromeClientImpl.cpp b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
index 8a65a6acd008811b11c2dd8117821645598c67cf..594039c86f3461ac9291452b0adc621a9a2f7cce 100644
--- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
@@ -726,7 +726,10 @@ void ChromeClientImpl::OpenFileChooser(LocalFrame* frame,
params.directory = file_chooser->GetSettings().allows_directory_upload;
params.accept_types = file_chooser->GetSettings().AcceptTypes();
params.selected_files = file_chooser->GetSettings().selected_files;
- params.use_media_capture = file_chooser->GetSettings().use_media_capture;
+ if (RuntimeEnabledFeatures::mediaCaptureEnabled())
+ params.capture = file_chooser->GetSettings().capture;
+ else
+ params.capture = WebString();
params.need_local_path = file_chooser->GetSettings().allows_directory_upload;
params.requestor = frame->GetDocument()->Url();

Powered by Google App Engine
This is Rietveld 408576698