Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(967)

Issue 67066: Prepopulate the Find box with whatever was searched for last (Closed)

Created:
11 years, 8 months ago by Finnur
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Once you search for something in a tab, you are very likely to search for the same thing in another tab. Therefore, if you haven't searched for anything within that tab then Chrome should prepopulate the Find box with the last string you searched for (in any tab). BUG=876 TEST=Open google.com, Ctrl+F, search for 'e'. Open a new tab/new window/open a link in a new window. In all of those new tabs the Find box should be prepopulated with 'e' that is selected (for easy overwriting). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=13613

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -3 lines) Patch
M chrome/browser/find_bar_controller.cc View 1 chunk +8 lines, -1 line 1 comment Download
M chrome/browser/tab_contents/web_contents.h View 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/web_contents.cc View 4 chunks +10 lines, -2 lines 1 comment Download

Messages

Total messages: 6 (0 generated)
Finnur
11 years, 8 months ago (2009-04-11 16:29:57 UTC) #1
Finnur
Oh BTW: As is probably obvious, the purpose of the find_prepopulate_text pointer is to avoid ...
11 years, 8 months ago (2009-04-11 16:57:35 UTC) #2
Ben Goodger (Google)
http://codereview.chromium.org/67066/diff/1/4 File chrome/browser/find_bar_controller.cc (right): http://codereview.chromium.org/67066/diff/1/4#newcode84 Line 84: find_string = web_contents_->find_prepopulate_text(); nit: indentation http://codereview.chromium.org/67066/diff/1/3 File chrome/browser/tab_contents/web_contents.cc ...
11 years, 8 months ago (2009-04-13 20:48:24 UTC) #3
Ben Goodger (Google)
Oh. you explained in your comment.
11 years, 8 months ago (2009-04-13 20:48:48 UTC) #4
Ben Goodger (Google)
On 2009/04/13 20:48:48, Ben Goodger wrote: > Oh. you explained in your comment. LGTM then.
11 years, 8 months ago (2009-04-13 20:49:09 UTC) #5
brettw
11 years, 8 months ago (2009-04-13 22:25:24 UTC) #6
It would be really great if this complexity didn't have to be in WebContents.
There is a lot of finding code in there that seems like it should be in a
separate component.

Powered by Google App Engine
This is Rietveld 408576698