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

Unified Diff: content/browser/accessibility/touch_accessibility_aura_browsertest.cc

Issue 2786223002: Fix flakiness in DragAndDropBrowserTests (Closed)
Patch Set: Review comments addressed Created 3 years, 9 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/accessibility/touch_accessibility_aura_browsertest.cc
diff --git a/content/browser/accessibility/touch_accessibility_aura_browsertest.cc b/content/browser/accessibility/touch_accessibility_aura_browsertest.cc
index 77ae888a7c26d84267e48d8df67d205495011e0a..7eb67c3ba043884d4fd9a1167ef5fc5b98de2a4b 100644
--- a/content/browser/accessibility/touch_accessibility_aura_browsertest.cc
+++ b/content/browser/accessibility/touch_accessibility_aura_browsertest.cc
@@ -171,11 +171,7 @@ IN_PROC_BROWSER_TEST_F(TouchAccessibilityBrowserTest,
// If OOPIFs are enabled, wait until compositor frames are all properly
// displayed, otherwise the touch event will not get sent to the correct
// renderer process.
- if (main_frame->GetView() != child_frame->GetView()) {
- SurfaceHitTestReadyNotifier notifier(
- static_cast<RenderWidgetHostViewChildFrame*>(child_frame->GetView()));
- notifier.WaitForSurfaceReady();
- }
+ WaitForChildFrameSurfaceReady(child_frame);
// Send a touch exploration event to the button in the first iframe.
// A touch exploration event is just a mouse move event with
« no previous file with comments | « chrome/browser/ui/views/drag_and_drop_interactive_uitest.cc ('k') | content/browser/site_per_process_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698