Index: content/browser/browser_plugin/browser_plugin_host_browsertest.cc |
diff --git a/content/browser/browser_plugin/browser_plugin_host_browsertest.cc b/content/browser/browser_plugin/browser_plugin_host_browsertest.cc |
index 77996a85cbc3e09ae4fa9cb67a6ee7bc27052215..e95fe67af3a14adbb5d8be824414238f909302b8 100644 |
--- a/content/browser/browser_plugin/browser_plugin_host_browsertest.cc |
+++ b/content/browser/browser_plugin/browser_plugin_host_browsertest.cc |
@@ -364,12 +364,7 @@ IN_PROC_BROWSER_TEST_F(BrowserPluginHostTest, NavigateAfterResize) { |
StartBrowserPluginTest(kEmbedderURL, kHTMLForGuest, true, embedder_code); |
// Wait for the guest to be resized to 100x200. |
- test_guest()->WaitForViewSize(nxt_size); |
- |
- // TODO(lazyboy): Instead do the following once it's not flaky. |
- // Wait for the guest to receive a damage buffer of size 100x200. |
- // This means the guest will be painted properly at that size. |
- // test_guest()->WaitForDamageBufferWithSize(nxt_size); |
+ test_guest()->WaitForResizeGuest(nxt_size); |
} |
IN_PROC_BROWSER_TEST_F(BrowserPluginHostTest, AdvanceFocus) { |