diff options
Diffstat (limited to 'chrome/browser/views/find_bar_win_browsertest.cc')
-rw-r--r-- | chrome/browser/views/find_bar_win_browsertest.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/browser/views/find_bar_win_browsertest.cc b/chrome/browser/views/find_bar_win_browsertest.cc index cf55acf..67b05ad 100644 --- a/chrome/browser/views/find_bar_win_browsertest.cc +++ b/chrome/browser/views/find_bar_win_browsertest.cc @@ -557,9 +557,8 @@ IN_PROC_BROWSER_TEST_F(FindInPageControllerTest, AcceleratorRestoring) { GURL url = server->TestServerPageW(kSimplePage); ui_test_utils::NavigateToURL(browser(), url); - gfx::NativeView browser_view = browser()->window()->GetNativeHandle(); - views::FocusManager* focus_manager = - views::FocusManager::GetFocusManagerForNativeView(browser_view); + views::FocusManager* focus_manager = views::FocusManager::GetFocusManager( + browser()->window()->GetNativeHandle()); // See where Escape is registered. views::Accelerator escape(VK_ESCAPE, false, false, false); |