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

Issue 976423002: Remove ScoreHistoryMatch::Builder (Closed)

Created:
5 years, 9 months ago by sdefresne
Modified:
5 years, 9 months ago
Reviewers:
Jay Civelli, Mark P
CC:
chromium-reviews, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@cpplint
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove ScoreHistoryMatch::Builder ScoredHistoryMatch::Builder was introduced to allow keeping ScoredHistoryMatch in the history component without having a dependency on autocomplete code. As ScoredHistoryMatch has been moved to chrome/browser/autocomplete this makes the code more complex than necessary, so remove it. BUG=462645 Committed: https://crrev.com/c38a45a25bac176d98e91aed57d87ff9c4d14e31 Cr-Commit-Position: refs/heads/master@{#320918}

Patch Set 1 #

Patch Set 2 : Fix unit tests #

Patch Set 3 : Fix unit tests #

Total comments: 22

Patch Set 4 : Address comments #

Total comments: 2

Patch Set 5 : Address comments #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1066 lines, -1800 lines) Patch
M chrome/browser/autocomplete/history_quick_provider.cc View 3 chunks +5 lines, -21 lines 0 comments Download
M chrome/browser/autocomplete/history_url_provider.cc View 1 2 3 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/autocomplete/in_memory_url_index.h View 1 2 3 4 4 chunks +12 lines, -6 lines 0 comments Download
M chrome/browser/autocomplete/in_memory_url_index.cc View 1 2 3 4 3 chunks +11 lines, -8 lines 0 comments Download
M chrome/browser/autocomplete/in_memory_url_index_factory.cc View 1 2 3 4 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/in_memory_url_index_unittest.cc View 1 2 3 4 29 chunks +77 lines, -89 lines 0 comments Download
M chrome/browser/autocomplete/scored_history_match.h View 1 2 3 4 3 chunks +126 lines, -48 lines 0 comments Download
M chrome/browser/autocomplete/scored_history_match.cc View 1 2 3 2 chunks +653 lines, -13 lines 0 comments Download
D chrome/browser/autocomplete/scored_history_match_builder_impl.h View 1 2 3 1 chunk +0 lines, -162 lines 0 comments Download
M chrome/browser/autocomplete/scored_history_match_builder_impl.cc View 1 2 3 1 chunk +0 lines, -689 lines 0 comments Download
D chrome/browser/autocomplete/scored_history_match_builder_impl_unittest.cc View 1 chunk +0 lines, -531 lines 0 comments Download
A + chrome/browser/autocomplete/scored_history_match_unittest.cc View 1 2 3 20 chunks +141 lines, -201 lines 0 comments Download
M chrome/browser/autocomplete/url_index_private_data.h View 4 chunks +9 lines, -5 lines 0 comments Download
M chrome/browser/autocomplete/url_index_private_data.cc View 1 2 8 chunks +23 lines, -19 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
sdefresne
Please take a look.
5 years, 9 months ago (2015-03-06 10:03:36 UTC) #2
sdefresne
+jcivelli@chromium.org for chrome/test/base/testing_profile.h
5 years, 9 months ago (2015-03-06 14:32:57 UTC) #4
Mark P
changelist description: "the code more complete than necessary"? Did you mean more complex? --mark https://codereview.chromium.org/976423002/diff/40001/chrome/browser/autocomplete/scored_history_match.cc ...
5 years, 9 months ago (2015-03-10 00:28:12 UTC) #5
sdefresne
PTAL https://codereview.chromium.org/976423002/diff/40001/chrome/browser/autocomplete/scored_history_match.cc File chrome/browser/autocomplete/scored_history_match.cc (right): https://codereview.chromium.org/976423002/diff/40001/chrome/browser/autocomplete/scored_history_match.cc#newcode13 chrome/browser/autocomplete/scored_history_match.cc:13: #include "base/metrics/histogram.h" On 2015/03/10 00:28:12, Mark P wrote: ...
5 years, 9 months ago (2015-03-10 10:43:29 UTC) #6
Mark P
lgtm with one minor comment https://codereview.chromium.org/976423002/diff/60001/chrome/browser/autocomplete/scored_history_match.h File chrome/browser/autocomplete/scored_history_match.h (right): https://codereview.chromium.org/976423002/diff/60001/chrome/browser/autocomplete/scored_history_match.h#newcode115 chrome/browser/autocomplete/scored_history_match.h:115: // url_matches and title_matches ...
5 years, 9 months ago (2015-03-12 21:31:37 UTC) #7
sdefresne
Thank you. https://codereview.chromium.org/976423002/diff/60001/chrome/browser/autocomplete/scored_history_match.h File chrome/browser/autocomplete/scored_history_match.h (right): https://codereview.chromium.org/976423002/diff/60001/chrome/browser/autocomplete/scored_history_match.h#newcode115 chrome/browser/autocomplete/scored_history_match.h:115: // url_matches and title_matches of |scored_history_match| in ...
5 years, 9 months ago (2015-03-12 21:36:21 UTC) #8
sdefresne
jcivelli: ping for OWNERS of chrome/test/base/testing_profile.cc Can you check CQ if l-g-t-m?
5 years, 9 months ago (2015-03-17 10:03:34 UTC) #9
Jay Civelli
lgtm
5 years, 9 months ago (2015-03-17 14:58:59 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/976423002/100001
5 years, 9 months ago (2015-03-17 14:59:33 UTC) #13
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 9 months ago (2015-03-17 15:32:30 UTC) #14
commit-bot: I haz the power
5 years, 9 months ago (2015-03-17 15:33:04 UTC) #15
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/c38a45a25bac176d98e91aed57d87ff9c4d14e31
Cr-Commit-Position: refs/heads/master@{#320918}

Powered by Google App Engine
This is Rietveld 408576698