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

Issue 339433007: Componentize URLDatabase (Closed)

Created:
6 years, 6 months ago by hashimoto
Modified:
6 years, 6 months ago
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, estade+watch_chromium.org, browser-components-watch_chromium.org, pedrosimonetti+watch_chromium.org, blundell
Project:
chromium
Visibility:
Public.

Description

Componentize URLDatabase Move chrome/browser/history/url_database.{cc,h} to components/history/core/browser. From chrome/browser/history/history_types.{cc,h}: - Move URLID, URLRow and URLResult to url_row.{cc,h} - Move KeywordSearchTermVisit and KeywordSearchTermRow to keyword_search_term.{cc,h} - Move autocomplete threshold related stuff (kLowQualityMatch* constants and two threshold related functions) to url_databse.{cc,h} BUG=387284 TEST=git cl try TBR=sky@chromium.org for include fix under chrome/browser TBR=mmenke@chrmoium.org as an owner of net, a new dependency added to components/history/DEPS TBR=blundell@chromium.org as an owner of components/history.gypi Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=279859

Patch Set 1 : #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : rebase #

Patch Set 4 : Address comments #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -2643 lines) Patch
M chrome/browser/autocomplete/extension_app_provider.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autocomplete/extension_app_provider_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autocomplete/history_quick_provider_unittest.cc View 1 2 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/autocomplete/history_url_provider_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/search_provider.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/autocomplete/shortcuts_provider_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autocomplete/zero_suggest_provider.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/bookmarks/chrome_bookmark_client.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/history/android/android_provider_backend.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/history/android/android_provider_backend_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/history/android/bookmark_model_sql_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/history_backend.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/history/history_backend_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/history/history_database.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/history/history_service.h View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/history/history_service.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/history/history_types.h View 5 chunks +1 line, -243 lines 0 comments Download
M chrome/browser/history/history_types.cc View 4 chunks +0 lines, -120 lines 0 comments Download
D chrome/browser/history/history_types_unittest.cc View 1 chunk +0 lines, -28 lines 0 comments Download
M chrome/browser/history/in_memory_database.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/in_memory_history_backend.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/in_memory_url_index.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/thumbnail_database.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/top_sites_backend.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/history/top_sites_database.h View 1 chunk +0 lines, -1 line 0 comments Download
D chrome/browser/history/url_database.h View 1 chunk +0 lines, -308 lines 0 comments Download
D chrome/browser/history/url_database.cc View 1 chunk +0 lines, -619 lines 0 comments Download
D chrome/browser/history/url_database_unittest.cc View 1 chunk +0 lines, -335 lines 0 comments Download
M chrome/browser/history/visit_database.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/visit_database_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/predictors/autocomplete_action_predictor_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M components/components_tests.gyp View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M components/history.gypi View 1 2 3 1 chunk +9 lines, -1 line 0 comments Download
M components/history/DEPS View 1 chunk +2 lines, -0 lines 0 comments Download
A + components/history/core/browser/keyword_search_term.h View 1 2 3 1 chunk +24 lines, -29 lines 0 comments Download
A + components/history/core/browser/keyword_search_term.cc View 1 chunk +9 lines, -9 lines 0 comments Download
A + components/history/core/browser/url_database.h View 3 chunks +24 lines, -4 lines 0 comments Download
A + components/history/core/browser/url_database.cc View 2 chunks +21 lines, -4 lines 0 comments Download
A + components/history/core/browser/url_database_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
A + components/history/core/browser/url_row.h View 3 chunks +4 lines, -569 lines 0 comments Download
A + components/history/core/browser/url_row.cc View 3 chunks +3 lines, -351 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
hashimoto
Sylvain, could you review this change as an owner of history? git-cl did a nice ...
6 years, 6 months ago (2014-06-25 04:52:27 UTC) #1
sdefresne
LGTM with comments https://codereview.chromium.org/339433007/diff/140001/components/history.gypi File components/history.gypi (right): https://codereview.chromium.org/339433007/diff/140001/components/history.gypi#newcode16 components/history.gypi:16: 'keyed_service_core', You need to add net/net.gyp:net ...
6 years, 6 months ago (2014-06-25 13:21:09 UTC) #2
sdefresne
+blundell as I'm not an OWNER of history
6 years, 6 months ago (2014-06-25 13:21:41 UTC) #3
hashimoto
https://codereview.chromium.org/339433007/diff/140001/components/history.gypi File components/history.gypi (right): https://codereview.chromium.org/339433007/diff/140001/components/history.gypi#newcode16 components/history.gypi:16: 'keyed_service_core', On 2014/06/25 13:21:09, sdefresne wrote: > You need ...
6 years, 6 months ago (2014-06-25 16:37:33 UTC) #4
hashimoto
Colin, could you take a look at this change?
6 years, 6 months ago (2014-06-25 16:37:56 UTC) #5
sdefresne
-blundell, +droger for OWNERS of history
6 years, 6 months ago (2014-06-25 16:58:48 UTC) #6
droger
lgtm
6 years, 6 months ago (2014-06-25 17:04:23 UTC) #7
hashimoto
TBRing a number of people: - sky@chromium.org for include fix under chrome/browser - mmenke@chrmoium.org as ...
6 years, 6 months ago (2014-06-25 17:39:50 UTC) #8
hashimoto
The CQ bit was checked by hashimoto@chromium.org
6 years, 6 months ago (2014-06-25 17:40:07 UTC) #9
sdefresne
On 2014/06/25 17:39:50, hashimoto wrote: > TBRing a number of people: > - mailto:sky@chromium.org for ...
6 years, 6 months ago (2014-06-25 17:41:03 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/339433007/180001
6 years, 6 months ago (2014-06-25 17:41:07 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-25 20:01:11 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-25 20:05:57 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_rel/builds/32214)
6 years, 6 months ago (2014-06-25 20:05:58 UTC) #14
hashimoto
The CQ bit was checked by hashimoto@chromium.org
6 years, 6 months ago (2014-06-25 20:39:44 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/339433007/200001
6 years, 6 months ago (2014-06-25 20:42:43 UTC) #16
commit-bot: I haz the power
Change committed as 279859
6 years, 6 months ago (2014-06-25 23:45:40 UTC) #17
hashimoto
6 years, 6 months ago (2014-06-26 00:52:44 UTC) #18
Message was sent while issue was closed.
On 2014/06/25 17:41:03, sdefresne wrote:
> On 2014/06/25 17:39:50, hashimoto wrote:
> > TBRing a number of people:
> > - mailto:sky@chromium.org for include fix under chrome/browser
> > - mailto:mmenke@chrmoium.org as an owner of net, a new dependency added to
> > components/history/DEPS
> > - mailto:blundell@chromium.org as an owner of components/history.gypi (btw
why
> > components/OWNERS doesn't have "per-file" lines for history.gypi?)
> 
> components/history.gypi: I just forgot to add it

I see.
Made a CL to add them. https://codereview.chromium.org/356543005/

Powered by Google App Engine
This is Rietveld 408576698