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

Issue 285233012: Abstract history dependencies on bookmarks through HistoryClient (Closed)

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

Description

Abstract history dependencies on bookmarks through HistoryClient Add methods to abstract BookmarkService and BookmarkModel methods used by HistoryService through the HistoryClient interface. BUG=371825 TBR=sky Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274824

Patch Set 1 #

Total comments: 8

Patch Set 2 : Fix unit tests #

Total comments: 2

Patch Set 3 : Address comments #

Total comments: 8

Patch Set 4 : Split CL to just abstract bookmarks #

Patch Set 5 : Rebase #

Total comments: 8

Patch Set 6 : Addresss comments & rebase #

Total comments: 2

Patch Set 7 : Fix compilation #

Patch Set 8 : Fix compilation on android #

Patch Set 9 : Rebase #

Patch Set 10 : Fix android unit tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+529 lines, -291 lines) Patch
M chrome/browser/history/android/android_provider_backend.h View 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/history/android/android_provider_backend.cc View 1 3 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/history/android/android_provider_backend_unittest.cc View 1 2 3 4 5 6 7 8 9 30 chunks +128 lines, -52 lines 0 comments Download
M chrome/browser/history/chrome_history_client.h View 1 2 3 4 5 1 chunk +18 lines, -2 lines 0 comments Download
M chrome/browser/history/chrome_history_client.cc View 1 2 3 4 1 chunk +40 lines, -1 line 0 comments Download
M chrome/browser/history/chrome_history_client_factory.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/history/chrome_history_client_factory.cc View 1 2 3 4 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/history/expire_history_backend.h View 1 2 3 4 5 4 chunks +12 lines, -12 lines 0 comments Download
M chrome/browser/history/expire_history_backend.cc View 1 2 3 7 chunks +14 lines, -15 lines 0 comments Download
M chrome/browser/history/expire_history_backend_unittest.cc View 1 2 3 4 5 chunks +6 lines, -10 lines 0 comments Download
M chrome/browser/history/history_backend.h View 1 2 3 4 5 5 chunks +10 lines, -11 lines 0 comments Download
M chrome/browser/history/history_backend.cc View 1 2 3 4 5 6 7 7 chunks +20 lines, -17 lines 0 comments Download
M chrome/browser/history/history_backend_unittest.cc View 1 2 3 4 17 chunks +29 lines, -36 lines 0 comments Download
M chrome/browser/history/history_querying_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/history_service.h View 1 2 3 4 5 chunks +5 lines, -9 lines 0 comments Download
M chrome/browser/history/history_service.cc View 1 2 3 4 8 chunks +4 lines, -24 lines 0 comments Download
M chrome/browser/history/history_service_factory.cc View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/history/history_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/in_memory_url_index.h View 1 2 3 4 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/history/in_memory_url_index.cc View 1 2 3 4 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/history/in_memory_url_index_unittest.cc View 1 2 3 4 4 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/history/scored_history_match.h View 1 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/history/scored_history_match.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/history/scored_history_match_unittest.cc View 1 2 3 4 3 chunks +4 lines, -30 lines 0 comments Download
M chrome/browser/history/url_index_private_data.h View 1 2 3 4 5 6 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/history/url_index_private_data.cc View 1 2 3 4 5 chunks +11 lines, -11 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 5 6 7 8 4 chunks +17 lines, -17 lines 0 comments Download
M components/history.gypi View 1 2 3 4 1 chunk +19 lines, -1 line 0 comments Download
M components/history/core/browser/history_client.h View 1 2 3 4 1 chunk +30 lines, -2 lines 0 comments Download
A components/history/core/browser/history_client.cc View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
A components/history/core/test/history_client_fake_bookmarks.h View 1 2 3 4 5 6 7 1 chunk +38 lines, -0 lines 0 comments Download
A components/history/core/test/history_client_fake_bookmarks.cc View 1 2 3 4 5 6 7 1 chunk +47 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Jiang Jiang
https://codereview.chromium.org/285233012/diff/30001/chrome/browser/history/chrome_history_client.h File chrome/browser/history/chrome_history_client.h (right): https://codereview.chromium.org/285233012/diff/30001/chrome/browser/history/chrome_history_client.h#newcode9 chrome/browser/history/chrome_history_client.h:9: #include "chrome/browser/history/history_service.h" Forward declare is enough. https://codereview.chromium.org/285233012/diff/30001/chrome/browser/history/chrome_history_client.h#newcode23 chrome/browser/history/chrome_history_client.h:23: HistoryService* ...
6 years, 7 months ago (2014-05-19 21:51:49 UTC) #1
sdefresne
Please have a look. https://codereview.chromium.org/285233012/diff/30001/chrome/browser/history/chrome_history_client.h File chrome/browser/history/chrome_history_client.h (right): https://codereview.chromium.org/285233012/diff/30001/chrome/browser/history/chrome_history_client.h#newcode9 chrome/browser/history/chrome_history_client.h:9: #include "chrome/browser/history/history_service.h" On 2014/05/19 21:51:50, ...
6 years, 7 months ago (2014-05-23 10:02:49 UTC) #2
blundell
https://codereview.chromium.org/285233012/diff/50001/chrome/browser/history/history_service_factory.cc File chrome/browser/history/history_service_factory.cc (right): https://codereview.chromium.org/285233012/diff/50001/chrome/browser/history/history_service_factory.cc#newcode76 chrome/browser/history/history_service_factory.cc:76: scoped_ptr<ChromeHistoryClient> history_client( There's no reason to make this change. ...
6 years, 7 months ago (2014-05-23 11:37:55 UTC) #3
sdefresne
sky: Please have a look (blundell is OOO). https://codereview.chromium.org/285233012/diff/50001/chrome/browser/history/history_service_factory.cc File chrome/browser/history/history_service_factory.cc (right): https://codereview.chromium.org/285233012/diff/50001/chrome/browser/history/history_service_factory.cc#newcode76 chrome/browser/history/history_service_factory.cc:76: scoped_ptr<ChromeHistoryClient> ...
6 years, 7 months ago (2014-05-23 13:59:29 UTC) #4
sky
As I reviewed all the bookmark changes, I think it's only fair to share the ...
6 years, 7 months ago (2014-05-23 15:50:50 UTC) #5
blundell
Would it be possible to split this into two CLs: - an initial CL that ...
6 years, 6 months ago (2014-05-26 07:16:58 UTC) #6
sdefresne
I've split the CL as requested. The first CL that just introduce HistoryClient and the ...
6 years, 6 months ago (2014-05-26 16:34:02 UTC) #7
sdefresne
PTAL
6 years, 6 months ago (2014-05-30 15:16:45 UTC) #8
blundell
Looks really good, only significant comment is on testing_profile.cc https://codereview.chromium.org/285233012/diff/110001/chrome/browser/history/chrome_history_client.h File chrome/browser/history/chrome_history_client.h (right): https://codereview.chromium.org/285233012/diff/110001/chrome/browser/history/chrome_history_client.h#newcode14 chrome/browser/history/chrome_history_client.h:14: ...
6 years, 6 months ago (2014-06-02 09:39:30 UTC) #9
sdefresne
PTAL https://codereview.chromium.org/285233012/diff/110001/chrome/browser/history/chrome_history_client.h File chrome/browser/history/chrome_history_client.h (right): https://codereview.chromium.org/285233012/diff/110001/chrome/browser/history/chrome_history_client.h#newcode14 chrome/browser/history/chrome_history_client.h:14: // depends on Chrome environment. On 2014/06/02 09:39:30, ...
6 years, 6 months ago (2014-06-02 12:59:11 UTC) #10
blundell
LGTM with question https://codereview.chromium.org/285233012/diff/130001/chrome/test/base/testing_profile.cc File chrome/test/base/testing_profile.cc (right): https://codereview.chromium.org/285233012/diff/130001/chrome/test/base/testing_profile.cc#newcode516 chrome/test/base/testing_profile.cc:516: BookmarkModelFactory::GetForProfile(profile)); Is this needed? i.e., is ...
6 years, 6 months ago (2014-06-02 13:02:35 UTC) #11
sdefresne
brettw → FYI https://codereview.chromium.org/285233012/diff/130001/chrome/test/base/testing_profile.cc File chrome/test/base/testing_profile.cc (right): https://codereview.chromium.org/285233012/diff/130001/chrome/test/base/testing_profile.cc#newcode516 chrome/test/base/testing_profile.cc:516: BookmarkModelFactory::GetForProfile(profile)); On 2014/06/02 13:02:36, blundell wrote: ...
6 years, 6 months ago (2014-06-03 10:42:03 UTC) #12
sdefresne
The CQ bit was checked by sdefresne@chromium.org
6 years, 6 months ago (2014-06-03 12:21:09 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sdefresne@chromium.org/285233012/230001
6 years, 6 months ago (2014-06-03 12:23:04 UTC) #14
sdefresne
TBR=jcivelli for OWNERS of //chrome/test/base
6 years, 6 months ago (2014-06-03 13:08:15 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 6 months ago (2014-06-03 13:50:06 UTC) #16
sdefresne
The CQ bit was checked by sdefresne@chromium.org
6 years, 6 months ago (2014-06-04 14:05:17 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sdefresne@chromium.org/285233012/290001
6 years, 6 months ago (2014-06-04 14:06:36 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 6 months ago (2014-06-04 14:39:41 UTC) #19
commit-bot: I haz the power
6 years, 6 months ago (2014-06-04 14:43:54 UTC) #20
Message was sent while issue was closed.
Change committed as 274824

Powered by Google App Engine
This is Rietveld 408576698