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

Unified Diff: chrome/browser/guest_view/extension_options/extension_options_guest.cc

Issue 531963002: Add support for file inputs for all guest views (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « chrome/browser/guest_view/extension_options/extension_options_guest.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/guest_view/extension_options/extension_options_guest.cc
diff --git a/chrome/browser/guest_view/extension_options/extension_options_guest.cc b/chrome/browser/guest_view/extension_options/extension_options_guest.cc
index 9fc3c5d4c03f1cd882ed5bd3ef7ed1c9ebc938c6..7171efa54d7360e6cda238c5ba4e7cb2aa65e463 100644
--- a/chrome/browser/guest_view/extension_options/extension_options_guest.cc
+++ b/chrome/browser/guest_view/extension_options/extension_options_guest.cc
@@ -173,6 +173,14 @@ bool ExtensionOptionsGuest::HandleContextMenu(
return true;
}
+void ExtensionOptionsGuest::RunFileChooser(
Fady Samuel 2014/09/02 21:34:18 Could we please move this to GuestViewBase instead
ericzeng 2014/09/02 23:07:30 Done.
+ WebContents* web_contents,
+ const content::FileChooserParams& params) {
+ if (!embedder_web_contents() || !embedder_web_contents()->GetDelegate())
+ return;
+ embedder_web_contents()->GetDelegate()->RunFileChooser(web_contents, params);
+}
+
bool ExtensionOptionsGuest::ShouldCreateWebContents(
content::WebContents* web_contents,
int route_id,
« no previous file with comments | « chrome/browser/guest_view/extension_options/extension_options_guest.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698