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

Unified Diff: content/browser/renderer_host/render_view_host_unittest.cc

Issue 2485693003: Drag-and-drop: DragEnter, DragOver, DragLeave, DragDrop (Closed)
Patch Set: Rebased. More fixes. Created 4 years, 1 month 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/renderer_host/render_view_host_unittest.cc
diff --git a/content/browser/renderer_host/render_view_host_unittest.cc b/content/browser/renderer_host/render_view_host_unittest.cc
index 3504cbe3df9cbcecb96344989a1998721ebf24a6..26a8e77dd3bbe535fcd423899af6225c57ce5fe5 100644
--- a/content/browser/renderer_host/render_view_host_unittest.cc
+++ b/content/browser/renderer_host/render_view_host_unittest.cc
@@ -173,9 +173,11 @@ TEST_F(RenderViewHostTest, DragEnteredFileURLsStillBlocked) {
dropped_data.filenames.push_back(
ui::FileInfo(dragged_file_path, base::FilePath()));
- rvh()->FilterDropData(&dropped_data);
- rvh()->DragTargetDragEnter(dropped_data, client_point, screen_point,
- blink::WebDragOperationNone, 0);
+ // TODO(paulmeyer): These will need to target the correct specific
+ // RenderWidgetHost to work with OOPIFs. See crbug.com/647249.
+ rvh()->GetWidget()->FilterDropData(&dropped_data);
+ rvh()->GetWidget()->DragTargetDragEnter(
+ dropped_data, client_point, screen_point, blink::WebDragOperationNone, 0);
int id = process()->GetID();
ChildProcessSecurityPolicyImpl* policy =
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/browser/renderer_host/render_widget_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698