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

Issue 11876045: [Search] Store and recall search terms using NavigationEntry to improve search term extraction (Closed)

Created:
7 years, 11 months ago by Mathieu
Modified:
7 years, 10 months ago
Reviewers:
samarth, jam, sreeram, Jói, sky
CC:
chromium-reviews, joi+watch-content_chromium.org, melevin, jam, gideonwald, dominich, marja+watch_chromium.org, David Black, samarth+watch_chromium.org, darin-cc_chromium.org, Jered, samarth
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

[Search] Store and recall search terms using NavigationEntry to improve search term extraction Adds a new field to NavigationEntry called ExtraData, meant to be used to store extra browser features on a per-need basis. Used here to store extracted search terms. BUG=159326, 153477, 167067 TEST=NavigationEntryTest, TabNavigationTest Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=180020

Patch Set 1 #

Patch Set 2 : comment #

Patch Set 3 : Condition for fixing #

Patch Set 4 : Clean #

Total comments: 1

Patch Set 5 : Indentation #

Total comments: 17

Patch Set 6 : addressed comments #

Total comments: 4

Patch Set 7 : Addressed comments #

Total comments: 7

Patch Set 8 : Addressed comments, some refactor #

Patch Set 9 : modified one test, rebased on other CL #

Patch Set 10 : https server #

Patch Set 11 : rebase #

Patch Set 12 : Reduced scope to NavigationEntry #

Patch Set 13 : const #

Total comments: 18

Patch Set 14 : Addressed comments #

Total comments: 2

Patch Set 15 : drop const #

Total comments: 6

Patch Set 16 : alignment #

Total comments: 8

Patch Set 17 : Comments #

Patch Set 18 : clear #

Total comments: 2

Patch Set 19 : comment #

Patch Set 20 : reupload #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -0 lines) Patch
M chrome/browser/sessions/session_types.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/sessions/session_types.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 8 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/sessions/session_types_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/search/search.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/ui/search/search.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +11 lines, -0 lines 0 comments Download
M content/browser/web_contents/navigation_entry_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +10 lines, -0 lines 0 comments Download
M content/browser/web_contents/navigation_entry_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +18 lines, -0 lines 0 comments Download
M content/browser/web_contents/navigation_entry_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +21 lines, -0 lines 0 comments Download
M content/public/browser/navigation_entry.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (0 generated)
Mathieu
Hi, This is ready for review. jam@/joi@: Changes to NavigationEntry's interface, as outlined in design ...
7 years, 11 months ago (2013-01-16 20:16:53 UTC) #1
Jói
Please provide a link to the design doc. Cheers, Jói On Wed, Jan 16, 2013 ...
7 years, 11 months ago (2013-01-16 21:38:01 UTC) #2
Mathieu
On 2013/01/16 21:38:01, Jói wrote: > Please provide a link to the design doc. > ...
7 years, 11 months ago (2013-01-16 21:54:29 UTC) #3
Jói
Great, thanks. On Wed, Jan 16, 2013 at 1:54 PM, <mathp@chromium.org> wrote: > On 2013/01/16 ...
7 years, 11 months ago (2013-01-16 22:02:23 UTC) #4
sky
https://codereview.chromium.org/11876045/diff/8001/chrome/browser/instant/instant_controller.cc File chrome/browser/instant/instant_controller.cc (right): https://codereview.chromium.org/11876045/diff/8001/chrome/browser/instant/instant_controller.cc#newcode553 chrome/browser/instant/instant_controller.cc:553: entry->SetExtraData(kSearchTermsKey, UTF8ToUTF16(query)); Is there a reason we do this ...
7 years, 11 months ago (2013-01-16 22:32:37 UTC) #5
Jói
Since John is already reviewing this, my review is redundant; you need his approval anyway ...
7 years, 11 months ago (2013-01-17 00:55:55 UTC) #6
Mathieu
Thanks for the comments! https://chromiumcodereview.appspot.com/11876045/diff/8001/chrome/browser/instant/instant_controller.cc File chrome/browser/instant/instant_controller.cc (right): https://chromiumcodereview.appspot.com/11876045/diff/8001/chrome/browser/instant/instant_controller.cc#newcode553 chrome/browser/instant/instant_controller.cc:553: entry->SetExtraData(kSearchTermsKey, UTF8ToUTF16(query)); On 2013/01/16 22:32:37, ...
7 years, 11 months ago (2013-01-17 15:59:29 UTC) #7
jam
content/public lgtm, I defer to other reviewers for the rest (i.e. sky for content). sorry ...
7 years, 11 months ago (2013-01-17 16:24:21 UTC) #8
sky
https://chromiumcodereview.appspot.com/11876045/diff/8001/chrome/browser/instant/instant_controller.cc File chrome/browser/instant/instant_controller.cc (right): https://chromiumcodereview.appspot.com/11876045/diff/8001/chrome/browser/instant/instant_controller.cc#newcode553 chrome/browser/instant/instant_controller.cc:553: entry->SetExtraData(kSearchTermsKey, UTF8ToUTF16(query)); On 2013/01/17 15:59:29, Mathieu Perreault wrote: > ...
7 years, 11 months ago (2013-01-17 17:23:21 UTC) #9
samarth
I mentioned 18 different test cases to you yesterday, but I lied: it's actually 24 ...
7 years, 11 months ago (2013-01-17 17:40:44 UTC) #10
sky
On Thu, Jan 17, 2013 at 9:23 AM, <sky@chromium.org> wrote: > > https://chromiumcodereview.appspot.com/11876045/diff/8001/chrome/browser/instant/instant_controller.cc > File ...
7 years, 11 months ago (2013-01-17 19:09:06 UTC) #11
Mathieu
Sreeram agreed that the history code/TemplateURLService will not need to used "fixed" search terms that ...
7 years, 11 months ago (2013-01-18 18:38:05 UTC) #12
sreeram
https://chromiumcodereview.appspot.com/11876045/diff/24001/chrome/browser/instant/instant_controller.cc File chrome/browser/instant/instant_controller.cc (right): https://chromiumcodereview.appspot.com/11876045/diff/24001/chrome/browser/instant/instant_controller.cc#newcode539 chrome/browser/instant/instant_controller.cc:539: query += UTF16ToUTF8(last_suggestion_.text); This isn't quite right. See https://chromiumcodereview.appspot.com/11415276/#msg3 ...
7 years, 11 months ago (2013-01-22 04:34:46 UTC) #13
Mathieu
I've taken a stab at tests, testing for enter commit and "focus lost" commit. I ...
7 years, 11 months ago (2013-01-22 23:28:15 UTC) #14
Mathieu
On 2013/01/22 23:28:15, Mathieu Perreault wrote: > I've taken a stab at tests, testing for ...
7 years, 11 months ago (2013-01-23 22:20:15 UTC) #15
Mathieu
On 2013/01/23 22:20:15, Mathieu Perreault wrote: > On 2013/01/22 23:28:15, Mathieu Perreault wrote: > > ...
7 years, 11 months ago (2013-01-24 18:51:26 UTC) #16
sreeram
I don't follow your arguments for continuing to use virtual URL. Okay, so in some ...
7 years, 11 months ago (2013-01-25 19:51:18 UTC) #17
sreeram
We do need one extra fix in this CL, to handle the following scenario (the ...
7 years, 11 months ago (2013-01-25 20:39:01 UTC) #18
Mathieu
On 2013/01/25 20:39:01, sreeram wrote: > We do need one extra fix in this CL, ...
7 years, 10 months ago (2013-01-30 16:19:50 UTC) #19
sreeram
On 2013/01/30 16:19:50, Mathieu Perreault wrote: > - Not preventing the "Revert" in omnibox_edit_model.cc is ...
7 years, 10 months ago (2013-01-30 17:22:35 UTC) #20
Mathieu
On 2013/01/30 17:22:35, sreeram wrote: > On 2013/01/30 16:19:50, Mathieu Perreault wrote: > > - ...
7 years, 10 months ago (2013-01-30 20:51:40 UTC) #21
sreeram
https://codereview.chromium.org/11876045/diff/44001/chrome/browser/sessions/session_types.cc File chrome/browser/sessions/session_types.cc (right): https://codereview.chromium.org/11876045/diff/44001/chrome/browser/sessions/session_types.cc#newcode315 chrome/browser/sessions/session_types.cc:315: search_terms_ = string16(); Nit: search_terms_.clear(); https://codereview.chromium.org/11876045/diff/44001/chrome/browser/ui/search/search.cc File chrome/browser/ui/search/search.cc (right): ...
7 years, 10 months ago (2013-01-30 21:41:39 UTC) #22
Mathieu
Thanks for the fast review! https://codereview.chromium.org/11876045/diff/44001/chrome/browser/sessions/session_types.cc File chrome/browser/sessions/session_types.cc (right): https://codereview.chromium.org/11876045/diff/44001/chrome/browser/sessions/session_types.cc#newcode315 chrome/browser/sessions/session_types.cc:315: search_terms_ = string16(); On ...
7 years, 10 months ago (2013-01-30 21:55:12 UTC) #23
sreeram
https://codereview.chromium.org/11876045/diff/41003/content/browser/web_contents/navigation_entry_impl.h File content/browser/web_contents/navigation_entry_impl.h (right): https://codereview.chromium.org/11876045/diff/41003/content/browser/web_contents/navigation_entry_impl.h#newcode81 content/browser/web_contents/navigation_entry_impl.h:81: string16* data) const OVERRIDE; Drop the const in "virtual ...
7 years, 10 months ago (2013-01-30 22:04:05 UTC) #24
Mathieu
Thanks! https://codereview.chromium.org/11876045/diff/41003/content/browser/web_contents/navigation_entry_impl.h File content/browser/web_contents/navigation_entry_impl.h (right): https://codereview.chromium.org/11876045/diff/41003/content/browser/web_contents/navigation_entry_impl.h#newcode81 content/browser/web_contents/navigation_entry_impl.h:81: string16* data) const OVERRIDE; On 2013/01/30 22:04:05, sreeram ...
7 years, 10 months ago (2013-01-30 22:19:22 UTC) #25
sreeram
https://codereview.chromium.org/11876045/diff/54002/content/browser/web_contents/navigation_entry_impl.cc File content/browser/web_contents/navigation_entry_impl.cc (right): https://codereview.chromium.org/11876045/diff/54002/content/browser/web_contents/navigation_entry_impl.cc#newcode288 content/browser/web_contents/navigation_entry_impl.cc:288: string16* data) const { Align to previous line. https://codereview.chromium.org/11876045/diff/54002/content/browser/web_contents/navigation_entry_impl.h ...
7 years, 10 months ago (2013-01-30 22:22:52 UTC) #26
Mathieu
Thanks. Sorry about that. https://codereview.chromium.org/11876045/diff/54002/content/browser/web_contents/navigation_entry_impl.cc File content/browser/web_contents/navigation_entry_impl.cc (right): https://codereview.chromium.org/11876045/diff/54002/content/browser/web_contents/navigation_entry_impl.cc#newcode288 content/browser/web_contents/navigation_entry_impl.cc:288: string16* data) const { On ...
7 years, 10 months ago (2013-01-30 22:28:33 UTC) #27
sreeram
lgtm You still need OWNERS approval, though.
7 years, 10 months ago (2013-01-30 22:35:33 UTC) #28
Mathieu
On 2013/01/30 22:35:33, sreeram wrote: > lgtm > > You still need OWNERS approval, though. ...
7 years, 10 months ago (2013-01-30 22:44:49 UTC) #29
sky
https://codereview.chromium.org/11876045/diff/57001/content/browser/web_contents/navigation_entry_impl.h File content/browser/web_contents/navigation_entry_impl.h (right): https://codereview.chromium.org/11876045/diff/57001/content/browser/web_contents/navigation_entry_impl.h#newcode273 content/browser/web_contents/navigation_entry_impl.h:273: std::map<std::string, string16> extra_data_; Do you see the big warning ...
7 years, 10 months ago (2013-01-30 23:32:02 UTC) #30
sreeram
https://codereview.chromium.org/11876045/diff/57001/content/browser/web_contents/navigation_entry_impl.h File content/browser/web_contents/navigation_entry_impl.h (right): https://codereview.chromium.org/11876045/diff/57001/content/browser/web_contents/navigation_entry_impl.h#newcode273 content/browser/web_contents/navigation_entry_impl.h:273: std::map<std::string, string16> extra_data_; On 2013/01/30 23:32:03, sky wrote: > ...
7 years, 10 months ago (2013-01-30 23:39:04 UTC) #31
sky
https://codereview.chromium.org/11876045/diff/57001/content/browser/web_contents/navigation_entry_impl.h File content/browser/web_contents/navigation_entry_impl.h (right): https://codereview.chromium.org/11876045/diff/57001/content/browser/web_contents/navigation_entry_impl.h#newcode273 content/browser/web_contents/navigation_entry_impl.h:273: std::map<std::string, string16> extra_data_; On 2013/01/30 23:39:05, sreeram wrote: > ...
7 years, 10 months ago (2013-01-31 01:34:14 UTC) #32
sreeram
https://codereview.chromium.org/11876045/diff/57001/content/browser/web_contents/navigation_entry_impl.h File content/browser/web_contents/navigation_entry_impl.h (right): https://codereview.chromium.org/11876045/diff/57001/content/browser/web_contents/navigation_entry_impl.h#newcode273 content/browser/web_contents/navigation_entry_impl.h:273: std::map<std::string, string16> extra_data_; On 2013/01/31 01:34:15, sky wrote: > ...
7 years, 10 months ago (2013-01-31 02:14:11 UTC) #33
Mathieu
On 2013/01/30 23:39:04, sreeram wrote: > https://codereview.chromium.org/11876045/diff/57001/content/browser/web_contents/navigation_entry_impl.h > File content/browser/web_contents/navigation_entry_impl.h (right): > > https://codereview.chromium.org/11876045/diff/57001/content/browser/web_contents/navigation_entry_impl.h#newcode273 > ...
7 years, 10 months ago (2013-01-31 14:25:22 UTC) #34
Mathieu
Thanks. https://codereview.chromium.org/11876045/diff/57001/content/browser/web_contents/navigation_entry_impl.h File content/browser/web_contents/navigation_entry_impl.h (right): https://codereview.chromium.org/11876045/diff/57001/content/browser/web_contents/navigation_entry_impl.h#newcode273 content/browser/web_contents/navigation_entry_impl.h:273: std::map<std::string, string16> extra_data_; On 2013/01/31 02:14:11, sreeram wrote: ...
7 years, 10 months ago (2013-01-31 14:45:32 UTC) #35
sky
I'm OK with not arbitrarily persisting, but that isn't at all documented. https://codereview.chromium.org/11876045/diff/57001/content/public/browser/navigation_entry.h File content/public/browser/navigation_entry.h ...
7 years, 10 months ago (2013-01-31 17:08:22 UTC) #36
Mathieu
Hi Scott, I documented that the extra_data_ field is not persisted, similar to other fields ...
7 years, 10 months ago (2013-01-31 18:57:03 UTC) #37
sky
LGTM https://codereview.chromium.org/11876045/diff/47004/content/public/browser/navigation_entry.h File content/public/browser/navigation_entry.h (right): https://codereview.chromium.org/11876045/diff/47004/content/public/browser/navigation_entry.h#newcode192 content/public/browser/navigation_entry.h:192: // Set extra data on this NavigationEntry according ...
7 years, 10 months ago (2013-01-31 20:52:15 UTC) #38
Mathieu
https://codereview.chromium.org/11876045/diff/47004/content/public/browser/navigation_entry.h File content/public/browser/navigation_entry.h (right): https://codereview.chromium.org/11876045/diff/47004/content/public/browser/navigation_entry.h#newcode192 content/public/browser/navigation_entry.h:192: // Set extra data on this NavigationEntry according to ...
7 years, 10 months ago (2013-01-31 21:30:50 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/11876045/57003
7 years, 10 months ago (2013-01-31 21:32:12 UTC) #40
commit-bot: I haz the power
Failed to trigger a try job on android_clang_dbg HTTP Error 400: Bad Request
7 years, 10 months ago (2013-01-31 21:42:28 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/11876045/61001
7 years, 10 months ago (2013-01-31 21:42:38 UTC) #42
commit-bot: I haz the power
7 years, 10 months ago (2013-02-01 00:42:39 UTC) #43
Message was sent while issue was closed.
Change committed as 180020

Powered by Google App Engine
This is Rietveld 408576698