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

Issue 484213002: Refactor HistoryService to not send NOTIFICATION_FAVICON_CHANGED (Closed)

Created:
6 years, 4 months ago by sdefresne
Modified:
4 years ago
CC:
browser-components-watch_chromium.org, chromium-reviews, haitaol+watch_chromium.org, maniscalco+watch_chromium.org, tfarina, tim+watch_chromium.org, zea+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Refactor HistoryService to not send NOTIFICATION_FAVICON_CHANGED Use a base::CallbackList<void(HistoryService*, const std::set<GURL>&) to register and notify objects interested in change to favicon urls. The callback will be sent at the point the notification would have been called. Refactor HistoryBackend and HistoryService to change how the notification is forwarded (remove the notification and introduce explicit methods). Change how notification are forwared on android from a pair of vector of notification type and notification detail to a list of callbacks. BUG=373320 Committed: https://crrev.com/ba90edc1df14a90c43327329a43f64910ce2fc81 Cr-Commit-Position: refs/heads/master@{#293967}

Patch Set 1 #

Patch Set 2 : Fix android compilation #

Total comments: 4

Patch Set 3 : Do not use c++11 syntax #

Patch Set 4 : Fix dependency cycle & remove unused parameter to OnFaviconChangedCallback #

Patch Set 5 : Rebase #

Patch Set 6 : Rebase #

Patch Set 7 : Fix android unit tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+250 lines, -252 lines) Patch
M chrome/browser/bookmarks/chrome_bookmark_client.h View 1 2 3 3 chunks +15 lines, -9 lines 0 comments Download
M chrome/browser/bookmarks/chrome_bookmark_client.cc View 1 2 3 7 chunks +15 lines, -40 lines 0 comments Download
M chrome/browser/chrome_notification_types.h View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
D chrome/browser/favicon/favicon_changed_details.h View 1 chunk +0 lines, -21 lines 0 comments Download
D chrome/browser/favicon/favicon_changed_details.cc View 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/browser/history/DEPS View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/history/android/android_provider_backend.h View 1 2 chunks +2 lines, -17 lines 0 comments Download
M chrome/browser/history/android/android_provider_backend.cc View 1 2 13 chunks +64 lines, -71 lines 0 comments Download
M chrome/browser/history/android/android_provider_backend_unittest.cc View 1 2 3 4 5 6 19 chunks +38 lines, -42 lines 0 comments Download
M chrome/browser/history/history_backend.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/history/history_backend.cc View 1 2 3 3 chunks +6 lines, -14 lines 0 comments Download
M chrome/browser/history/history_backend_unittest.cc View 1 2 3 18 chunks +32 lines, -11 lines 0 comments Download
M chrome/browser/history/history_service.h View 1 2 3 4 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/history/history_service.cc View 1 2 3 2 chunks +21 lines, -0 lines 0 comments Download
M chrome/browser/history/history_service_factory.cc View 1 2 3 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/history/history_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/sessions/notification_service_sessions_router.h View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/sync/sessions/notification_service_sessions_router.cc View 1 2 3 4 chunks +15 lines, -9 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M components/history/core/browser/BUILD.gn View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (7 generated)
sdefresne
brettw@chromium.org: Please review changes in //chrome/browser/history, //chrome/browser/bookmarks & //components/history. jochen@chromium.org: Please review changes in //chrome/browser/chrome_notification_types.h, ...
6 years, 4 months ago (2014-08-19 15:23:41 UTC) #1
brettw
Is this still relevant? It sounds like something I already reviewed, but I might be ...
6 years, 4 months ago (2014-08-25 19:44:42 UTC) #2
sdefresne
On 2014/08/25 19:44:42, brettw wrote: > Is this still relevant? It sounds like something I ...
6 years, 3 months ago (2014-09-01 07:50:53 UTC) #3
brettw
lgtm https://codereview.chromium.org/484213002/diff/20001/chrome/browser/history/android/android_provider_backend.cc File chrome/browser/history/android/android_provider_backend.cc (right): https://codereview.chromium.org/484213002/diff/20001/chrome/browser/history/android/android_provider_backend.cc#newcode118 chrome/browser/history/android/android_provider_backend.cc:118: scoped_ptr<std::set<GURL>> changed_favicons) { Put space in >> (still ...
6 years, 3 months ago (2014-09-02 23:23:10 UTC) #4
jochen (gone - plz use gerrit)
lgtm
6 years, 3 months ago (2014-09-03 08:14:33 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sdefresne@chromium.org/484213002/40001
6 years, 3 months ago (2014-09-03 09:59:39 UTC) #7
sdefresne
Thank you for the review. https://codereview.chromium.org/484213002/diff/20001/chrome/browser/history/android/android_provider_backend.cc File chrome/browser/history/android/android_provider_backend.cc (right): https://codereview.chromium.org/484213002/diff/20001/chrome/browser/history/android/android_provider_backend.cc#newcode118 chrome/browser/history/android/android_provider_backend.cc:118: scoped_ptr<std::set<GURL>> changed_favicons) { On ...
6 years, 3 months ago (2014-09-03 10:00:01 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 3 months ago (2014-09-03 16:07:28 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_swarming/builds/12448) mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/9558)
6 years, 3 months ago (2014-09-03 16:15:34 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sdefresne@chromium.org/484213002/80001
6 years, 3 months ago (2014-09-08 14:42:55 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/6401)
6 years, 3 months ago (2014-09-08 16:45:33 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sdefresne@chromium.org/484213002/100001
6 years, 3 months ago (2014-09-08 17:39:32 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/6448)
6 years, 3 months ago (2014-09-08 19:47:01 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sdefresne@chromium.org/484213002/120001
6 years, 3 months ago (2014-09-09 16:57:31 UTC) #21
commit-bot: I haz the power
Committed patchset #7 (id:120001) as b195be5c90601c9cb26e5e77ee6a6070916ac2b8
6 years, 3 months ago (2014-09-09 18:13:20 UTC) #22
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:54:17 UTC) #23
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/ba90edc1df14a90c43327329a43f64910ce2fc81
Cr-Commit-Position: refs/heads/master@{#293967}

Powered by Google App Engine
This is Rietveld 408576698