diff options
author | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-22 20:28:12 +0000 |
---|---|---|
committer | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-22 20:28:12 +0000 |
commit | e491f1cb8247090047bd8c895e9bd2bf4de5ee5a (patch) | |
tree | df56a34ca44028d65cde514853cb3feda0c8b839 /chrome/browser/cocoa | |
parent | 44c875a167d5ce78000d8843190a8c22d2236e54 (diff) | |
download | chromium_src-e491f1cb8247090047bd8c895e9bd2bf4de5ee5a.zip chromium_src-e491f1cb8247090047bd8c895e9bd2bf4de5ee5a.tar.gz chromium_src-e491f1cb8247090047bd8c895e9bd2bf4de5ee5a.tar.bz2 |
Fix bug 12468 where F3 (FindNext) in a brand new tab was not using prepopulated search (what you have searched for in other tabs).
TEST=Covered by in-process-browser test now. To test manually: open a tab, search for something in FindInPage, Press Ctrl+T and then F3. It should search for the same thing in the newly opened tab.
BUG=12468
Review URL: http://codereview.chromium.org/115714
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16786 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa')
-rw-r--r-- | chrome/browser/cocoa/find_bar_cocoa_controller.mm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/cocoa/find_bar_cocoa_controller.mm b/chrome/browser/cocoa/find_bar_cocoa_controller.mm index cedc89a..e9d38c9 100644 --- a/chrome/browser/cocoa/find_bar_cocoa_controller.mm +++ b/chrome/browser/cocoa/find_bar_cocoa_controller.mm @@ -42,14 +42,14 @@ if (findBarBridge_) findBarBridge_->GetFindBarController()->tab_contents()->StartFinding( base::SysNSStringToUTF16([findText_ stringValue]), - false); + false, false); } - (IBAction)nextResult:(id)sender { if (findBarBridge_) findBarBridge_->GetFindBarController()->tab_contents()->StartFinding( base::SysNSStringToUTF16([findText_ stringValue]), - true); + true, false); } // Positions the find bar view in the correct location based on the @@ -87,7 +87,7 @@ string16 findText = base::SysNSStringToUTF16([findText_ stringValue]); if (findText.length() > 0) { - tab_contents->StartFinding(findText, true); + tab_contents->StartFinding(findText, true, false); } else { // The textbox is empty so we reset. tab_contents->StopFinding(true); // true = clear selection on page. |