Index: chrome/browser/autofill/autofill_browsertest.cc |
diff --git a/chrome/browser/autofill/autofill_browsertest.cc b/chrome/browser/autofill/autofill_browsertest.cc |
index 9baa482cff7e69d9591001a7ac5ff29bf9fc0c70..995025ae5fc62c28a437f2fff6ad4cf3c8532e27 100644 |
--- a/chrome/browser/autofill/autofill_browsertest.cc |
+++ b/chrome/browser/autofill/autofill_browsertest.cc |
@@ -1670,15 +1670,9 @@ IN_PROC_BROWSER_TEST_F(AutofillTest, MAYBE_DisableAutocompleteWhileFilling) { |
// Press the down arrow to select the suggestion and attempt to preview the |
// autofilled form. |
- if (!external_delegate()) { |
- content::SimulateKeyPress( |
- browser()->tab_strip_model()->GetActiveWebContents(), |
- ui::VKEY_DOWN, false, false, false, false); |
- } else { |
- content::NativeWebKeyboardEvent event; |
- event.windowsKeyCode = ui::VKEY_DOWN; |
- external_delegate()->keyboard_listener()->HandleKeyPressEvent(event); |
- } |
+ content::NativeWebKeyboardEvent event; |
+ event.windowsKeyCode = ui::VKEY_DOWN; |
+ external_delegate()->keyboard_listener()->HandleKeyPressEvent(event); |
// Wait for any IPCs to complete by performing an action that generates an |
// IPC that's easy to wait for. Chrome shouldn't crash. |