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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2050623005: Move file chooser from RenderView(Host) to RenderFrame(Host). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes based on reviews. Created 4 years, 6 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 | « content/browser/web_contents/web_contents_impl.h ('k') | content/common/frame_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 7af8d31cf93ccf999f70553b2d0ef16c1ce6ee0a..3cb56ac4bf16403f01f3d5a1d88a316343b64e91 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -730,13 +730,6 @@ bool WebContentsImpl::HasValidFrameSource() {
return true;
}
-void WebContentsImpl::RunFileChooser(
- RenderViewHost* render_view_host,
- const FileChooserParams& params) {
- if (delegate_)
- delegate_->RunFileChooser(GetMainFrame(), params);
-}
-
NavigationControllerImpl& WebContentsImpl::GetController() {
return controller_;
}
@@ -4109,6 +4102,12 @@ void WebContentsImpl::RunBeforeUnloadConfirm(
false));
}
+void WebContentsImpl::RunFileChooser(RenderFrameHost* render_frame_host,
+ const FileChooserParams& params) {
+ if (delegate_)
+ delegate_->RunFileChooser(render_frame_host, params);
+}
+
WebContents* WebContentsImpl::GetAsWebContents() {
return this;
}
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/common/frame_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698