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

Unified Diff: chrome/browser/file_select_helper.cc

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: chrome/browser/file_select_helper.cc
diff --git a/chrome/browser/file_select_helper.cc b/chrome/browser/file_select_helper.cc
index a6019952d1a5f6e0d993fccd3368fd772c59a102..11256dd9bc5571e1a0a7af58c8c2a2fe7201ab3f 100644
--- a/chrome/browser/file_select_helper.cc
+++ b/chrome/browser/file_select_helper.cc
@@ -595,8 +595,8 @@ void FileSelectHelper::RunFileChooserOnUIThread(
#if defined(OS_ANDROID)
// Android needs the original MIME types and an additional capture value.
- std::pair<std::vector<base::string16>, bool> accept_types =
- std::make_pair(params->accept_types, params->capture);
+ std::vector<base::string16> accept_types(params->accept_types);
+ accept_types.push_back(params->capture);
#endif
select_file_dialog_->SelectFile(

Powered by Google App Engine
This is Rietveld 408576698