Index: content/public/test/browser_test_utils.cc |
diff --git a/content/public/test/browser_test_utils.cc b/content/public/test/browser_test_utils.cc |
index 59541ff73a5dfde97465966e8814973cb6c071bb..44647dfd45c40055e75c9c5d6a42a5d9c3c08093 100644 |
--- a/content/public/test/browser_test_utils.cc |
+++ b/content/public/test/browser_test_utils.cc |
@@ -227,9 +227,7 @@ |
int modifiers) { |
NativeWebKeyboardEvent event; |
BuildSimpleWebKeyEvent(type, key_code, native_key_code, modifiers, &event); |
- static_cast<WebContentsImpl*>(web_contents) |
- ->GetFocusedRenderWidgetHost() |
- ->ForwardKeyboardEvent(event); |
+ web_contents->GetRenderViewHost()->GetWidget()->ForwardKeyboardEvent(event); |
} |
void GetCookiesCallback(std::string* cookies_out, |