Index: chrome/browser/views/find_bar_host_interactive_uitest.cc |
=================================================================== |
--- chrome/browser/views/find_bar_host_interactive_uitest.cc (revision 41087) |
+++ chrome/browser/views/find_bar_host_interactive_uitest.cc (working copy) |
@@ -125,7 +125,8 @@ |
// Ensure the creation of the find bar controller. |
browser()->GetFindBarController()->Show(); |
EXPECT_EQ(VIEW_ID_FIND_IN_PAGE_TEXT_FIELD, GetFocusedViewID()); |
- browser()->GetFindBarController()->EndFindSession(); |
+ browser()->GetFindBarController()->EndFindSession( |
+ FindBarController::kKeepSelection); |
EXPECT_EQ(VIEW_ID_LOCATION_BAR, GetFocusedViewID()); |
// Focus the location bar, find something on the page, close the find box, |
@@ -135,7 +136,8 @@ |
EXPECT_EQ(VIEW_ID_FIND_IN_PAGE_TEXT_FIELD, GetFocusedViewID()); |
ui_test_utils::FindInPage(browser()->GetSelectedTabContents(), |
L"a", true, false, NULL); |
- browser()->GetFindBarController()->EndFindSession(); |
+ browser()->GetFindBarController()->EndFindSession( |
+ FindBarController::kKeepSelection); |
EXPECT_EQ(VIEW_ID_TAB_CONTAINER_FOCUS_VIEW, GetFocusedViewID()); |
// Focus the location bar, open and close the find box, focus should return to |
@@ -145,6 +147,7 @@ |
EXPECT_EQ(VIEW_ID_LOCATION_BAR, GetFocusedViewID()); |
browser()->GetFindBarController()->Show(); |
EXPECT_EQ(VIEW_ID_FIND_IN_PAGE_TEXT_FIELD, GetFocusedViewID()); |
- browser()->GetFindBarController()->EndFindSession(); |
+ browser()->GetFindBarController()->EndFindSession( |
+ FindBarController::kKeepSelection); |
EXPECT_EQ(VIEW_ID_LOCATION_BAR, GetFocusedViewID()); |
} |