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

Issue 872313005: Remove dependency on visitedlink from history (Closed)

Created:
5 years, 10 months ago by sdefresne
Modified:
5 years, 10 months ago
CC:
browser-components-watch_chromium.org, chromium-reviews, grt+watch_chromium.org, maniscalco+watch_chromium.org, maxbogue+watch_chromium.org, pvalenzuela+watch_chromium.org, tim+watch_chromium.org, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@init-prefs
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove dependency on Profile from HistoryService Introduce an abstract interface history::VisitDelegate to abstract visitedlink::VisitedLinkMaster from visitedlink component that has a dependency on //content and thus cannot be used on iOS. Provides an implementation of history::VisitDelegate that forward to visitedlink::VisitedLinkMaster and inject it into HistoryService via the HistoryServiceFactory. Remove dependency on visitedlink component from HistoryService and HistoryBackend. Fix file that dependended on the forward-declaration of Profile from history_service.h Cleanup //chrome/browser/history/DEPS. Fix typos and some style issues. BUG=453790 Committed: https://crrev.com/d4d9fe44d9fcfa7a3c00fe8cdc9569a8690c28a7 Cr-Commit-Position: refs/heads/master@{#316836}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Address comments #

Patch Set 3 : Remove DCHECK and update comment for HistoryService constructor #

Patch Set 4 : Rebase #

Patch Set 5 : Fix leaks during tests by forcing destruction of HistoryService #

Patch Set 6 : Rebase #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+324 lines, -155 lines) Patch
M chrome/browser/autocomplete/shortcuts_provider_unittest.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/history/DEPS View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download
A chrome/browser/history/content_visit_delegate.h View 1 2 3 4 1 chunk +51 lines, -0 lines 0 comments Download
A chrome/browser/history/content_visit_delegate.cc View 1 1 chunk +121 lines, -0 lines 0 comments Download
M chrome/browser/history/history_backend.h View 1 2 3 4 5 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/history/history_backend.cc View 1 2 3 4 2 chunks +1 line, -19 lines 0 comments Download
M chrome/browser/history/history_backend_unittest.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/history/history_service.h View 1 2 3 4 5 11 chunks +17 lines, -28 lines 0 comments Download
M chrome/browser/history/history_service.cc View 1 2 3 4 5 6 12 chunks +42 lines, -75 lines 0 comments Download
M chrome/browser/history/history_service_factory.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector_unittest.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/malware_details_history.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/bookmark_data_type_controller_unittest.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_typed_url_unittest.cc View 3 chunks +5 lines, -6 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M components/history.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M components/history/core/browser/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M components/history/core/browser/url_database.h View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
A components/history/core/browser/visit_delegate.h View 1 chunk +46 lines, -0 lines 0 comments Download
A + components/history/core/browser/visit_delegate.cc View 1 chunk +5 lines, -5 lines 0 comments Download

Messages

Total messages: 20 (7 generated)
droger
https://codereview.chromium.org/872313005/diff/1/chrome/browser/history/content_visit_delegate.cc File chrome/browser/history/content_visit_delegate.cc (right): https://codereview.chromium.org/872313005/diff/1/chrome/browser/history/content_visit_delegate.cc#newcode11 chrome/browser/history/content_visit_delegate.cc:11: #include "components/visitedlink/browser/visitedlink_master.h" #include "base/logging.h" #include "base/memory/ref_counted.h" #include "url/gurl.h" https://codereview.chromium.org/872313005/diff/1/chrome/browser/history/content_visit_delegate.h ...
5 years, 10 months ago (2015-02-02 09:39:21 UTC) #1
sdefresne
Thank you for the review, please take another look. https://codereview.chromium.org/872313005/diff/1/chrome/browser/history/content_visit_delegate.cc File chrome/browser/history/content_visit_delegate.cc (right): https://codereview.chromium.org/872313005/diff/1/chrome/browser/history/content_visit_delegate.cc#newcode11 chrome/browser/history/content_visit_delegate.cc:11: ...
5 years, 10 months ago (2015-02-04 18:01:54 UTC) #2
droger
Thanks, LGTM.
5 years, 10 months ago (2015-02-05 10:12:59 UTC) #3
sdefresne
shess: OWNERS of //chrome/browser/safe_browsing jcivelli: OWNERS of //chrome/test/base zea: OWNERS of //chrome/browser/sync
5 years, 10 months ago (2015-02-05 10:25:00 UTC) #6
Scott Hess - ex-Googler
safe-browsing lgtm
5 years, 10 months ago (2015-02-05 15:00:47 UTC) #7
Nicolas Zea
sync lgtm
5 years, 10 months ago (2015-02-05 18:50:20 UTC) #8
sdefresne
jcivelli: ping for OWNERS of //chrome/test/base/testing_profile.h
5 years, 10 months ago (2015-02-09 08:58:35 UTC) #10
Jay Civelli
LGTM for chrome/test
5 years, 10 months ago (2015-02-09 17:12:09 UTC) #11
sdefresne
+pkasting for OWNERS of chrome/browser/autocomplete
5 years, 10 months ago (2015-02-16 14:39:06 UTC) #14
Peter Kasting
LGTM
5 years, 10 months ago (2015-02-16 20:03:27 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/872313005/120001
5 years, 10 months ago (2015-02-18 15:19:03 UTC) #18
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 10 months ago (2015-02-18 16:18:57 UTC) #19
commit-bot: I haz the power
5 years, 10 months ago (2015-02-18 16:20:01 UTC) #20
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/d4d9fe44d9fcfa7a3c00fe8cdc9569a8690c28a7
Cr-Commit-Position: refs/heads/master@{#316836}

Powered by Google App Engine
This is Rietveld 408576698