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

Issue 849323002: Componentize HistoryDatabase (Closed)

Created:
5 years, 11 months ago by sdefresne
Modified:
5 years, 11 months ago
CC:
browser-components-watch_chromium.org, cbentzel+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, davidben+watch_chromium.org, gavinp+prer_chromium.org, grt+watch_chromium.org, jam, jkarlin+watch_chromium.org, shishir+watch_chromium.org, James Su, tburkard+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Componentize HistoryDatabase Remove dependency on //content from HistoryDatabase by passing the DownloadInterruptReason value to HistoryDatabase constructor. Introduce HistoryDatabaseParams to allow easier forwarding of the HistoryDatabase parameters from HistoryServiceFactory to the db. Move //components/history/core/{android => browser/android} to avoid having a circular dependency between history_core_browser and history_core_android. Remove history_core_android (//components/core/android) targets. BUG=370850 TBR=bauerb@chromium.org TBR=pkasting@chromium.org TBR=sky@chromium.org TBR=tburkard@chromium.org TBR=jcivelli@chromium.org TBR=robertshield@chromium.org Committed: https://crrev.com/46129158888f7a765fc7cf28da16ae9dd159e0fb Cr-Commit-Position: refs/heads/master@{#312243}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Move //components/history/core/{android => browser/android} #

Patch Set 3 : Rebase #

Patch Set 4 : Fix android & iOS compilation #

Patch Set 5 : Fix unit tests #

Patch Set 6 : Fix android compilation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+488 lines, -2963 lines) Patch
M chrome/browser/BUILD.gn View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/android/provider/chrome_browser_provider.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/provider/chrome_browser_provider.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autocomplete/history_quick_provider.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/autocomplete/history_quick_provider_unittest.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/autocomplete/history_url_provider.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/history/android/android_cache_database_unittest.cc View 3 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/history/android/android_history_provider_service.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/android/android_history_provider_service_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/android/android_provider_backend.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/history/android/android_provider_backend.cc View 1 2 3 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/browser/history/android/android_provider_backend_unittest.cc View 8 chunks +14 lines, -11 lines 0 comments Download
M chrome/browser/history/android/android_urls_database_unittest.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/history/android/bookmark_model_sql_handler.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/android/bookmark_model_sql_handler_unittest.cc View 4 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/history/android/sqlite_cursor.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/android/sqlite_cursor_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/history/android/urls_sql_handler_unittest.cc View 1 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/history/android/visit_sql_handler_unittest.cc View 1 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/history/expire_history_backend.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/expire_history_backend_unittest.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/history/history_backend.h View 5 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/history/history_backend.cc View 5 chunks +16 lines, -5 lines 0 comments Download
M chrome/browser/history/history_backend_unittest.cc View 5 chunks +10 lines, -4 lines 0 comments Download
D chrome/browser/history/history_database.h View 1 chunk +0 lines, -196 lines 0 comments Download
D chrome/browser/history/history_database.cc View 1 chunk +0 lines, -466 lines 0 comments Download
M chrome/browser/history/history_database_unittest.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/history/history_querying_unittest.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/history/history_service.h View 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/history/history_service.cc View 4 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/history/history_service_factory.cc View 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/history/history_unittest.cc View 1 2 3 4 4 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/history/in_memory_url_index_unittest.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/history/url_index_private_data.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/prerender/prerender_local_predictor.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc View 2 chunks +5 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 2 chunks +4 lines, -1 line 0 comments Download
M components/components_tests.gyp View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M components/history.gypi View 1 4 chunks +31 lines, -36 lines 0 comments Download
M components/history/content/browser/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M components/history/content/browser/download_constants_utils.h View 1 chunk +1 line, -1 line 0 comments Download
A components/history/content/browser/history_database_helper.h View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
A components/history/content/browser/history_database_helper.cc View 1 chunk +24 lines, -0 lines 0 comments Download
M components/history/core/android/BUILD.gn View 1 1 chunk +0 lines, -31 lines 0 comments Download
D components/history/core/android/android_cache_database.h View 1 chunk +0 lines, -120 lines 0 comments Download
D components/history/core/android/android_cache_database.cc View 1 chunk +0 lines, -289 lines 0 comments Download
D components/history/core/android/android_history_types.h View 1 chunk +0 lines, -332 lines 0 comments Download
D components/history/core/android/android_history_types.cc View 1 chunk +0 lines, -145 lines 0 comments Download
D components/history/core/android/android_history_types_unittest.cc View 1 chunk +0 lines, -38 lines 0 comments Download
D components/history/core/android/android_time.h View 1 chunk +0 lines, -26 lines 0 comments Download
D components/history/core/android/android_urls_database.h View 1 chunk +0 lines, -73 lines 0 comments Download
D components/history/core/android/android_urls_database.cc View 1 chunk +0 lines, -179 lines 0 comments Download
D components/history/core/android/android_urls_sql_handler.h View 1 1 chunk +0 lines, -35 lines 0 comments Download
M components/history/core/android/android_urls_sql_handler.cc View 1 1 chunk +0 lines, -63 lines 0 comments Download
D components/history/core/android/favicon_sql_handler.h View 1 1 chunk +0 lines, -38 lines 0 comments Download
D components/history/core/android/favicon_sql_handler.cc View 1 1 chunk +0 lines, -123 lines 0 comments Download
M components/history/core/android/sql_handler.h View 1 1 chunk +0 lines, -75 lines 0 comments Download
D components/history/core/android/sql_handler.cc View 1 1 chunk +0 lines, -38 lines 0 comments Download
D components/history/core/android/urls_sql_handler.h View 1 1 chunk +0 lines, -34 lines 0 comments Download
D components/history/core/android/urls_sql_handler.cc View 1 1 chunk +0 lines, -154 lines 0 comments Download
D components/history/core/android/visit_sql_handler.h View 1 1 chunk +0 lines, -52 lines 0 comments Download
D components/history/core/android/visit_sql_handler.cc View 1 1 chunk +0 lines, -147 lines 0 comments Download
M components/history/core/browser/BUILD.gn View 1 2 3 4 5 2 chunks +26 lines, -0 lines 0 comments Download
A + components/history/core/browser/android/android_cache_database.h View 2 chunks +4 lines, -4 lines 0 comments Download
A + components/history/core/browser/android/android_cache_database.cc View 2 chunks +4 lines, -5 lines 0 comments Download
A + components/history/core/browser/android/android_history_types.h View 9 chunks +26 lines, -73 lines 0 comments Download
A + components/history/core/browser/android/android_history_types.cc View 5 chunks +14 lines, -24 lines 0 comments Download
A + components/history/core/browser/android/android_history_types_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/history/core/browser/android/android_time.h View 3 chunks +4 lines, -4 lines 0 comments Download
A + components/history/core/browser/android/android_urls_database.h View 3 chunks +5 lines, -5 lines 0 comments Download
A + components/history/core/browser/android/android_urls_database.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/history/core/browser/android/android_urls_sql_handler.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
A + components/history/core/browser/android/android_urls_sql_handler.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
A + components/history/core/browser/android/favicon_sql_handler.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
A + components/history/core/browser/android/favicon_sql_handler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A + components/history/core/browser/android/sql_handler.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
A + components/history/core/browser/android/sql_handler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A + components/history/core/browser/android/urls_sql_handler.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
A + components/history/core/browser/android/urls_sql_handler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A + components/history/core/browser/android/visit_sql_handler.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
A + components/history/core/browser/android/visit_sql_handler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/history/core/browser/download_database.h View 2 chunks +4 lines, -4 lines 0 comments Download
M components/history/core/browser/download_database.cc View 3 chunks +7 lines, -6 lines 0 comments Download
A + components/history/core/browser/history_database.h View 5 chunks +9 lines, -9 lines 0 comments Download
A + components/history/core/browser/history_database.cc View 1 2 3 5 chunks +9 lines, -11 lines 0 comments Download
A components/history/core/browser/history_database_params.h View 1 chunk +31 lines, -0 lines 0 comments Download
A components/history/core/browser/history_database_params.cc View 1 chunk +27 lines, -0 lines 0 comments Download
M components/history/core/test/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A components/history/core/test/test_history_database.h View 1 chunk +32 lines, -0 lines 0 comments Download
A components/history/core/test/test_history_database.cc View 1 2 3 4 1 chunk +31 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
sdefresne
Please take a look.
5 years, 11 months ago (2015-01-15 21:38:12 UTC) #2
droger
https://codereview.chromium.org/849323002/diff/1/components/history/content/browser/history_database_helper.h File components/history/content/browser/history_database_helper.h (right): https://codereview.chromium.org/849323002/diff/1/components/history/content/browser/history_database_helper.h#newcode16 components/history/content/browser/history_database_helper.h:16: HistoryDatabaseParams HistoryDatabaseParamsForPath( Why is this is a separate file? ...
5 years, 11 months ago (2015-01-20 09:49:01 UTC) #3
sdefresne
Move all files to //components/history/core/browser/android as discussed offline. Please take another look. https://codereview.chromium.org/849323002/diff/1/components/history/content/browser/history_database_helper.h File components/history/content/browser/history_database_helper.h ...
5 years, 11 months ago (2015-01-20 10:28:50 UTC) #4
droger
lgtm
5 years, 11 months ago (2015-01-20 10:41:11 UTC) #5
sdefresne
TBR-ing OWNERS of affected changes since they are: - simple mechanical changes due to file ...
5 years, 11 months ago (2015-01-20 18:24:00 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/849323002/100001
5 years, 11 months ago (2015-01-20 19:19:03 UTC) #14
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 11 months ago (2015-01-20 19:25:11 UTC) #15
commit-bot: I haz the power
5 years, 11 months ago (2015-01-20 19:25:59 UTC) #16
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/46129158888f7a765fc7cf28da16ae9dd159e0fb
Cr-Commit-Position: refs/heads/master@{#312243}

Powered by Google App Engine
This is Rietveld 408576698