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

Issue 284183011: Code clean up for ScoredHistoryMatch (Closed)

Created:
6 years, 7 months ago by nshaik
Modified:
6 years, 5 months ago
Reviewers:
blundell, Mark P, sky, sdefresne
CC:
chromium-reviews, browser-components-watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Code clean up for ScoredHistoryMatch Clean up the dead code using also_do_hup_like_scoring_ and max_assigned_score_for_non_inlineable_matches_ BUG=None TEST=unit_tests --gtest_filter=ScoredHistory* R=sdefresne,blundell

Patch Set 1 #

Total comments: 1

Patch Set 2 : Moving out from class variables #

Total comments: 4

Patch Set 3 : Clean up dead code #

Patch Set 4 : Added test info and formatted the code #

Total comments: 4

Patch Set 5 : Removing dead code #

Patch Set 6 : Deleting unused variables from header file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -81 lines) Patch
M chrome/browser/history/scored_history_match.h View 1 2 3 4 5 1 chunk +0 lines, -14 lines 0 comments Download
M chrome/browser/history/scored_history_match.cc View 1 2 3 4 3 chunks +0 lines, -67 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
nshaik
6 years, 7 months ago (2014-05-22 07:16:07 UTC) #1
sdefresne
No need to put me in TBR. Just put me in reviewer. In general, you ...
6 years, 7 months ago (2014-05-22 12:39:23 UTC) #2
nshaik
On 2014/05/22 12:39:23, sdefresne wrote: > No need to put me in TBR. Just put ...
6 years, 7 months ago (2014-05-22 16:30:26 UTC) #3
sdefresne
LGTM Please add blundell@ as a reviewer and send a message with something like "+blundell@ ...
6 years, 7 months ago (2014-05-22 16:41:06 UTC) #4
nshaik
"+blundell@ for OWNERS"
6 years, 7 months ago (2014-05-22 17:29:58 UTC) #5
blundell
https://codereview.chromium.org/284183011/diff/20001/chrome/browser/history/scored_history_match.cc File chrome/browser/history/scored_history_match.cc (right): https://codereview.chromium.org/284183011/diff/20001/chrome/browser/history/scored_history_match.cc#newcode176 chrome/browser/history/scored_history_match.cc:176: const bool promote_to_inline = (row.typed_count() > 1) || This ...
6 years, 7 months ago (2014-05-26 06:58:35 UTC) #6
nshaik
Hi Sylvian, can you please let me know, if I need to work on addressing ...
6 years, 6 months ago (2014-05-30 04:52:03 UTC) #7
sdefresne
Hi Naiem, Yes, I think that Colin's comment makes sense. https://codereview.chromium.org/284183011/diff/20001/chrome/browser/history/scored_history_match.cc File chrome/browser/history/scored_history_match.cc (right): https://codereview.chromium.org/284183011/diff/20001/chrome/browser/history/scored_history_match.cc#newcode176 ...
6 years, 6 months ago (2014-05-30 15:22:25 UTC) #8
blundell
https://codereview.chromium.org/284183011/diff/20001/chrome/browser/history/scored_history_match.cc File chrome/browser/history/scored_history_match.cc (right): https://codereview.chromium.org/284183011/diff/20001/chrome/browser/history/scored_history_match.cc#newcode176 chrome/browser/history/scored_history_match.cc:176: const bool promote_to_inline = (row.typed_count() > 1) || Note: ...
6 years, 6 months ago (2014-06-02 11:11:48 UTC) #9
sdefresne
On 2014/06/02 11:11:48, blundell wrote: > https://codereview.chromium.org/284183011/diff/20001/chrome/browser/history/scored_history_match.cc > File chrome/browser/history/scored_history_match.cc (right): > > https://codereview.chromium.org/284183011/diff/20001/chrome/browser/history/scored_history_match.cc#newcode176 > ...
6 years, 6 months ago (2014-06-06 07:17:03 UTC) #10
nshaik
Sylvain, I have cleaned up the code and for moving the constructor code, I was ...
6 years, 6 months ago (2014-06-10 08:28:34 UTC) #11
nshaik
Sylvain, Please review if the clean up I did is fine.
6 years, 6 months ago (2014-06-11 08:08:28 UTC) #12
sdefresne
Code cleanup looks fine.
6 years, 6 months ago (2014-06-11 08:20:14 UTC) #13
nshaik
The CQ bit was checked by naiem.shaik@gmail.com
6 years, 6 months ago (2014-06-11 17:43:35 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/naiem.shaik@gmail.com/284183011/60001
6 years, 6 months ago (2014-06-11 17:46:07 UTC) #15
blundell
The CQ bit was unchecked by blundell@chromium.org
6 years, 6 months ago (2014-06-11 18:16:29 UTC) #16
blundell
Not LGTM I thought the approach we decided on was to have this functionality go ...
6 years, 6 months ago (2014-06-11 18:17:36 UTC) #17
nshaik
On 2014/06/11 18:17:36, blundell wrote: > Not LGTM > > I thought the approach we ...
6 years, 6 months ago (2014-06-11 20:46:42 UTC) #18
nshaik
https://codereview.chromium.org/284183011/diff/60001/chrome/browser/history/scored_history_match.cc File chrome/browser/history/scored_history_match.cc (left): https://codereview.chromium.org/284183011/diff/60001/chrome/browser/history/scored_history_match.cc#oldcode205 chrome/browser/history/scored_history_match.cc:205: // If this match is not inlineable and there's ...
6 years, 6 months ago (2014-06-11 20:46:50 UTC) #19
blundell
OK, I understand now. Thanks for the explanation. Could you remove the also_do_hup_like_scoring_ and max_assigned_score_for_non_inlineable_matches_ ...
6 years, 6 months ago (2014-06-12 08:45:15 UTC) #20
nshaik
Done. Please review. Thanks, Naiem
6 years, 6 months ago (2014-06-12 23:08:16 UTC) #21
blundell
I believe that the variables are declared in the header file. Could you eliminate them ...
6 years, 6 months ago (2014-06-13 07:39:21 UTC) #22
nshaik
On 2014/06/13 07:39:21, blundell wrote: > I believe that the variables are declared in the ...
6 years, 6 months ago (2014-06-13 08:40:42 UTC) #23
blundell
LGTM +sky Scott, can you confirm that the code being removed is dead (as it ...
6 years, 6 months ago (2014-06-13 09:02:52 UTC) #24
sky
I believe mpearson added this. mpearson, can we nuke?
6 years, 6 months ago (2014-06-16 17:16:42 UTC) #25
Mark P
On 2014/06/16 17:16:42, sky wrote: > I believe mpearson added this. mpearson, can we nuke? ...
6 years, 6 months ago (2014-06-16 17:32:25 UTC) #26
blundell
6 years, 6 months ago (2014-06-17 14:13:48 UTC) #27
Thanks for the clarification, Mark! Naiem, that puts the kibosh on this CL, but
thanks for the work on it!

Powered by Google App Engine
This is Rietveld 408576698