| Index: chrome/browser/views/find_bar_view.cc
|
| ===================================================================
|
| --- chrome/browser/views/find_bar_view.cc (revision 41087)
|
| +++ chrome/browser/views/find_bar_view.cc (working copy)
|
| @@ -406,7 +406,8 @@
|
| }
|
| break;
|
| case CLOSE_TAG:
|
| - find_bar_host()->GetFindBarController()->EndFindSession();
|
| + find_bar_host()->GetFindBarController()->EndFindSession(
|
| + FindBarController::kKeepSelection);
|
| break;
|
| default:
|
| NOTREACHED() << L"Unknown button";
|
| @@ -434,8 +435,7 @@
|
| // The last two params here are forward (true) and case sensitive (false).
|
| controller->tab_contents()->StartFinding(new_contents, true, false);
|
| } else {
|
| - // The textbox is empty so we reset. true = clear selection on page.
|
| - controller->tab_contents()->StopFinding(true);
|
| + controller->tab_contents()->StopFinding(FindBarController::kClearSelection);
|
| UpdateForResult(controller->tab_contents()->find_result(), string16());
|
| }
|
| }
|
|
|