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

Issue 5774004: Make HistoryContentsProvider results deletable (Closed)

Created:
10 years ago by msw
Modified:
9 years, 7 months ago
Reviewers:
brettw, Peter Kasting
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Make HistoryContentsProvider results deletable This change should allow you to press Shift+Delete to remove selected results from the Omnibox auto-complete drop-down that have been collected from the contents of pages from the user's history. BUG=14748 TEST=trybots and deleting history-contents results from the omnibox auto-complete drop-down.

Patch Set 1 #

Patch Set 2 : Revising a couple checks & DCHECKS #

Total comments: 2

Patch Set 3 : Move DeleteMatch to common base class, update includes, etc. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -64 lines) Patch
M chrome/browser/autocomplete/autocomplete_browsertest.cc View 10 chunks +18 lines, -18 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_match.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autocomplete/history_contents_provider.h View 1 2 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/autocomplete/history_contents_provider.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/history_provider.h View 1 2 2 chunks +3 lines, -1 line 1 comment Download
M chrome/browser/autocomplete/history_provider.cc View 1 2 2 chunks +41 lines, -0 lines 1 comment Download
M chrome/browser/autocomplete/history_url_provider.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/autocomplete/history_url_provider.cc View 1 2 1 chunk +0 lines, -34 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
msw
Should this also remove results collected from bookmark titles (AddBookmarkTitleMatchToResults)? Should I be deleting any ...
10 years ago (2010-12-14 03:54:03 UTC) #1
msw
Brett, can you review this CL for me? (evanm suggested you!) This appears to be ...
10 years ago (2010-12-15 21:54:26 UTC) #2
msw
Ready for review, re-running trybots now.
10 years ago (2010-12-15 21:56:08 UTC) #3
brettw
http://codereview.chromium.org/5774004/diff/3001/chrome/browser/autocomplete/history_contents_provider.cc File chrome/browser/autocomplete/history_contents_provider.cc (right): http://codereview.chromium.org/5774004/diff/3001/chrome/browser/autocomplete/history_contents_provider.cc#newcode164 chrome/browser/autocomplete/history_contents_provider.cc:164: if (!history_service || !selected_url.is_valid()) { This code is copied ...
10 years ago (2010-12-15 22:24:11 UTC) #4
msw
On 2010/12/15 22:24:11, brettw wrote: > http://codereview.chromium.org/5774004/diff/3001/chrome/browser/autocomplete/history_contents_provider.cc > File chrome/browser/autocomplete/history_contents_provider.cc (right): > > http://codereview.chromium.org/5774004/diff/3001/chrome/browser/autocomplete/history_contents_provider.cc#newcode164 > ...
10 years ago (2010-12-16 01:37:23 UTC) #5
msw
Please review my updated CL that addresses your comment. http://codereview.chromium.org/5774004/diff/3001/chrome/browser/autocomplete/history_contents_provider.cc File chrome/browser/autocomplete/history_contents_provider.cc (right): http://codereview.chromium.org/5774004/diff/3001/chrome/browser/autocomplete/history_contents_provider.cc#newcode164 chrome/browser/autocomplete/history_contents_provider.cc:164: ...
10 years ago (2010-12-16 01:38:25 UTC) #6
brettw
LGTM http://codereview.chromium.org/5774004/diff/10001/chrome/browser/autocomplete/history_provider.cc File chrome/browser/autocomplete/history_provider.cc (right): http://codereview.chromium.org/5774004/diff/10001/chrome/browser/autocomplete/history_provider.cc#newcode31 chrome/browser/autocomplete/history_provider.cc:31: profile_->GetHistoryService(Profile::EXPLICIT_ACCESS); This should be indented 2 more spaces, ...
10 years ago (2010-12-16 17:55:14 UTC) #7
Peter Kasting
10 years ago (2010-12-17 19:32:01 UTC) #8
http://codereview.chromium.org/5774004/diff/10001/chrome/browser/autocomplete...
File chrome/browser/autocomplete/history_provider.h (right):

http://codereview.chromium.org/5774004/diff/10001/chrome/browser/autocomplete...
chrome/browser/autocomplete/history_provider.h:34: virtual void
DeleteMatch(const AutocompleteMatch& match) OVERRIDE;
This causes the HistoryQuickProvider to inherit this as well.  That's probably
problematic as I believe deleting matches there, while desirable, will require
additional bookkeeping.  You should probably scan that file or talk to mrossetti
so you can write an override in that class that calls this function and also
performs the additional work.

Powered by Google App Engine
This is Rietveld 408576698