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

Unified Diff: content/browser/frame_host/render_frame_host_manager_browsertest.cc

Issue 2059533002: Change WebContentsDelegate::RunFileChooser to be frame based. (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
Index: content/browser/frame_host/render_frame_host_manager_browsertest.cc
diff --git a/content/browser/frame_host/render_frame_host_manager_browsertest.cc b/content/browser/frame_host/render_frame_host_manager_browsertest.cc
index ae972e8f4b9030a85106be629abc2acbc67b7ba7..07d8d34b8854de4262447a575a45b52d5067bb4e 100644
--- a/content/browser/frame_host/render_frame_host_manager_browsertest.cc
+++ b/content/browser/frame_host/render_frame_host_manager_browsertest.cc
@@ -1822,15 +1822,14 @@ class FileChooserDelegate : public WebContentsDelegate {
FileChooserDelegate(const base::FilePath& file)
: file_(file), file_chosen_(false) {}
- void RunFileChooser(WebContents* web_contents,
+ void RunFileChooser(RenderFrameHost* render_frame_host,
const FileChooserParams& params) override {
// Send the selected file to the renderer process.
FileChooserFileInfo file_info;
file_info.file_path = file_;
std::vector<FileChooserFileInfo> files;
files.push_back(file_info);
- web_contents->GetRenderViewHost()->FilesSelectedInChooser(
- files, FileChooserParams::Open);
+ render_frame_host->FilesSelectedInChooser(files, FileChooserParams::Open);
file_chosen_ = true;
}
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698