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

Unified Diff: chrome/browser/autofill/autofill_browsertest.cc

Issue 22211002: [Autofill] Remove Old Test Code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698